AEmitter:EnableEmission
From Data Realms Wiki
(Difference between revisions)
Beautifybot (Talk | contribs) m (updating function page) |
m (Reverted edits by Beautifybot (talk) to last revision by Daman) |
||
Line 1: | Line 1: | ||
{{LuaFunction | {{LuaFunction | ||
- | |function_name | + | |function_name = EnableEmission |
- | |arguments | + | |arguments = [[Boolean]] |
- | |returns | + | |returns = [[nil]] |
- | |description | + | |description = Toggles whether emissions ([[AddEmission]]) are activated or not. Useful for rockets/missiles that are supposed to have a short thrust-time. |
- | + | |codedesc = Checks whether emission is activated. When it isn't, it enables emission. | |
- | |codedesc | + | |code = <code lua n> |
- | |code | + | |
function Update(self) | function Update(self) | ||
if self:IsEmitting() == false then | if self:IsEmitting() == false then | ||
Line 13: | Line 12: | ||
end | end | ||
</code> | </code> | ||
- | |output | + | |output = [[nil]] |
- | }} | + | |}} |
Revision as of 00:23, 28 June 2012
Function | |
---|---|
Syntax | EnableEmission( Boolean ) |
Description: | |
Toggles whether emissions (AddEmission) are activated or not. Useful for rockets/missiles that are supposed to have a short thrust-time. | |
Returns | nil |
Example | |
---|---|
Description | Checks whether emission is activated. When it isn't, it enables emission. |
Code |
|
Output | nil |