AEmitter:EnableEmission
From Data Realms Wiki
(Difference between revisions)
m (refresh cache) |
Beautifybot (Talk | contribs) m (updating function page) |
||
Line 1: | Line 1: | ||
{{LuaFunction | {{LuaFunction | ||
- | |function_name | + | |function_name =EnableEmission |
- | |arguments | + | |arguments =* Whether to enable or disable emission. |
- | |returns | + | |returns =None. |
- | |description | + | |description = |
- | |codedesc | + | Sets this AEmitter to start emitting at the set rate, or to stop. |
- | |code | + | |codedesc = Checks whether emission is activated. When it isn't, it enables emission. |
+ | |code = <code lua n> | ||
function Update(self) | function Update(self) | ||
if self:IsEmitting() == false then | if self:IsEmitting() == false then | ||
Line 12: | Line 13: | ||
end | end | ||
</code> | </code> | ||
- | |output | + | |output = [[nil]] |
- | + | }} |
Revision as of 00:11, 28 June 2012
Function | |
---|---|
Syntax | EnableEmission( * Whether to enable or disable emission. ) |
Description: | |
Sets this AEmitter to start emitting at the set rate, or to stop. | |
Returns | None. |
Example | |
---|---|
Description | Checks whether emission is activated. When it isn't, it enables emission. |
Code |
|
Output | nil |