Template:LuaCallin: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m parp
Flozi (talk | contribs)
m faff
Line 1: Line 1:
<includeonly>{{API
<includeonly>{{API
|{{{addon}}}:
|{{{addon}}}&#58;
|{{{name}}}
|{{{name}}}
|{{{params}}}
|{{{params}}}

Revision as of 01:08, 1 January 2013

Lua Callin example:

{{luacallin|wudget|name|param_list|return_list|description}}

gadget:AllowUnitCreation

( number unitDefID, number builderID, number builderTeam, 
number x, number y, number z, 
number facing )

return: bool allow

Called just before unit is created, the boolean return value determines whether or not the creation is permitted.


{{{prefix}}}[[#{{{name}}}|{{{name}}}]]({{{args}}})

{{{info}}}