Template:LuaCallin

From Zero-K
Revision as of 23:33, 9 September 2020 by Shaman (talk | contribs) (Created page with "<includeonly>{{API |prefix = addon. |name = {{{name}}} |args = {{{args|}}} |return = {{{return|}}} |info = {{{info}}}}}</includeonly><noinclude>==Lua Callin usage example== <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua Callin usage example

{{LuaCallin
|name = AllowUnitTransfer
|args = unitID, unitDefID, oldTeam, newTeam, capture
|return = {{type|bool}} allow 
|info = Called just before a unit is transferred to a different team, the boolean return value determines whether or not the transfer is permitted.
}}

Template:PrefixTemplate:NameTemplate:CodeStyle(unitID, unitDefID, oldTeam, newTeam, capture)
return: Template:CodeStyleTemplate:Type allow

Called just before a unit is transferred to a different team, the boolean return value determines whether or not the transfer is permitted.