User:Flozi: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m →Scratchpad: more example, lose the shadow
Flozi (talk | contribs)
Line 4: Line 4:
= Scratchpad =
= Scratchpad =


== Template:Tag ==
<span class="type" style="color:#0099cc; font-family:courier, monospace;">bool</span> <span class="tagname" style="color:#105289; font-family:courier, monospace; font-weight:bold;">burnblow</span> &emsp; default: <span class="value" style="color:#ff6600;font-family:courier, monospace;">false</span> &emsp; lua: <code>selfExplode</code>
<span class="type" style="color:#0099cc; font-family:courier, monospace;">bool</span> <span class="tagname" style="color:#105289; font-family:courier, monospace; font-weight:bold;">burnblow</span> &emsp; default: <span class="value" style="color:#ff6600;font-family:courier, monospace;">false</span> &emsp; lua: <code>selfExplode</code>


Line 15: Line 16:


:The velocity in elmos per second of the weapon projectile. Since 99.0 maxVelocity is a synonym.
:The velocity in elmos per second of the weapon projectile. Since 99.0 maxVelocity is a synonym.
== 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 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;">number</span> facing)</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.


= TODO: =
= TODO: =

Revision as of 22:37, 8 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(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.

TODO:

Major

Minor

Undocumented Features

Template:LuaCallout Examples

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