User:Flozi: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
Flozi (talk | contribs)
mNo edit summary
Line 19: Line 19:
== Template:API -> CallIn ==
== Template:API -> CallIn ==


<span style="font-family:courier, monospace;"><span class="tagname" style="color:#105289;">addon.<span style="font-weight:bold;">AllowUnitCreation</span></span>(<span class="type" style="color:#0099cc;">number</span> unitDefID, <span class="type" style="color:#0099cc;">number</span> builderID, <span class="type" style="color:#0099cc;">number</span> builderTeam,  
<span style="font-family:courier, monospace;"><span class="tagname" style="color:#105289;">addon.<span style="font-weight:bold;">AllowUnitCreation</span></span>(<span class="type" style="color:#0099cc;">int</span> unitDefID, <span class="type" style="color:#0099cc;">int</span> builderID, <span class="type" style="color:#0099cc;">int</span> builderTeam,  
<span class="type" style="color:#0099cc;">number</span> x, <span class="type" style="color:#0099cc;">number</span> y, <span class="type" style="color:#0099cc;">number</span> z,  
<span class="type" style="color:#0099cc;">int</span> x, <span class="type" style="color:#0099cc;">int</span> y, <span class="type" style="color:#0099cc;">int</span> z,  
<span class="type" style="color:#0099cc;">number</span> facing)</span>
<span class="type" style="color:#0099cc;">int</span> facing)</span>


:return: <span style="font-family:courier, monospace;"><span class="type" style="color:#0099cc;">bool</span> allow</span>
return: <span style="font-family:courier, monospace;"><span class="type" style="color:#0099cc;">bool</span> allow</span>


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

Revision as of 22:20, 10 June 2016

My User Subpages

Scratchpad

Template:Tag

bool burnblow   default: false   lua: selfExplode

Does the weapon explode when it reaches its maximum range or continue on its path? The name is an OTAism.

float range   default: 10.0

The maximum range in elmos that the weapon can fire at.

float weaponVelocity   default: 0.0

The velocity in elmos per second of the weapon projectile. Since 99.0 maxVelocity is a synonym.

Template:API -> CallIn

addon.AllowUnitCreation(int unitDefID, int builderID, int builderTeam, int x, int y, int z, int facing)

return: bool allow

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

TODO:

Major

Minor

Undocumented Features

Template:LuaCallout Examples

{{{prefix}}}UseTeamResource ( {{{arg1}}}, {{{arg2}}}, {{{arg3}}}, {{{arg4}}}, {{{arg5}}}, {{{arg6}}}, {{{arg7}}}, {{{arg8}}}, {{{arg9}}} )
return: nil | bool hadEnough