[unitscript] Help me understand why doYouEvenLift() doesn't work

[unitscript] Help me understand why doYouEvenLift() doesn't work

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

[unitscript] Help me understand why doYouEvenLift() doesn't work

Post by Forboding Angel »

Common Includes: http://pastebin.com/Jrc3casS
Unitscript: http://pastebin.com/r4pJ8Rp8

I cannot get the doYouEvenLift() function to do anything. It would seem that it is more or less the same as thrust(), but while thrust works, doYouEvenLift() doesn't do anything.
8611z
Posts: 169
Joined: 08 Jul 2015, 20:20

Re: [unitscript] Help me understand why doYouEvenLift() doesn't work

Post by 8611z »

doYouEvenLift() function is not called anywhere
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: [unitscript] Help me understand why doYouEvenLift() doesn't work

Post by PicassoCT »

Knorke is right. Its not called anywhere. How can you do this to us forb? You made us read code...

;)

Also, memefied APIs for the work, nothing is easier to learn

Try this, kids at home:
common = include("headers/common_includes_lus.lua", Spring.UnitScript ,VFS.RAW)
or
common = include("headers/common_includes_lus.lua", nil ,VFS.RAW)

also use assert on function in common object

assert(common.doyouEvenLift)
assert(type(common.doyouEvenLift) == "function")
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: [unitscript] Help me understand why doYouEvenLift() doesn't work

Post by Forboding Angel »

Christ, Knorke, you're absolutely right. For some reason I had it in my head that declaring it would also be calling it. Thanks.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: [unitscript] Help me understand why doYouEvenLift() doesn't work

Post by PicassoCT »

That was uncalled for behavior there forb.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: [unitscript] Help me understand why doYouEvenLift() doesn't work

Post by Forboding Angel »

Wtf are you talking about? I was thanking him...
Post Reply

Return to “Help & Bugs”