AllowUnitTransfer and else arguments?

AllowUnitTransfer and else arguments?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

AllowUnitTransfer and else arguments?

Post by bobthedinosaur »

edIT: I am awesomely awful at self check. ....
Last edited by bobthedinosaur on 09 Feb 2011, 05:31, edited 1 time in total.
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: AllowUnitTransfer and else arguments?

Post by Niobium »

You're missing a 'return true', either just before the function ends or in the else section.
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: AllowUnitTransfer and else arguments?

Post by bobthedinosaur »

We'll I feel pretty stupid. You can probably delete this useless thread :P
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: AllowUnitTransfer and else arguments?

Post by SirMaverick »

bobthedinosaur wrote:We'll I feel pretty stupid. You can probably delete this useless thread :P
Shouldn't delete it. I've seen many people making such mistakes, including myself. Document that and other can learn from such faults.
Post Reply

Return to “Lua Scripts”