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.
[unitscript] Help me understand why doYouEvenLift() doesn't work
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [unitscript] Help me understand why doYouEvenLift() doesn't work
doYouEvenLift() function is not called anywhere
Re: [unitscript] Help me understand why doYouEvenLift() doesn't work
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")
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")
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [unitscript] Help me understand why doYouEvenLift() doesn't work
Christ, Knorke, you're absolutely right. For some reason I had it in my head that declaring it would also be calling it. Thanks.
Re: [unitscript] Help me understand why doYouEvenLift() doesn't work
That was uncalled for behavior there forb.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [unitscript] Help me understand why doYouEvenLift() doesn't work
Wtf are you talking about? I was thanking him...