Template:LuaCallin

From Spring
Revision as of 18:02, 17 June 2016 by Flozi (talk | contribs) (temp fix)
Jump to navigationJump to search

Lua Callin usage example:

{{LuaCallin|name|params|return|description}}

addon.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.