AEmitter:IsEmitting

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Beautifybot (talk) to last revision by Thoughtprocess)
m (updating function page)
 
(One intermediate revision not shown)
Line 1: Line 1:
{{LuaFunction
{{LuaFunction
-
|function_name       = self:IsEmitting
+
|function_name =IsEmitting
-
|arguments           =
+
|arguments =* None.
-
|returns             = [[Boolean]]
+
|returns =Whether it's emitting or not.
-
|description          = Checks whether emissions ([[AddEmission]]) are activated or not. Useful for rockets/missiles that are supposed to have a short thrust-time.
+
|description =
-
|codedesc            = Checks whether emission is activated. If it isn't, it enables emission.
+
Indicates whether this AEmitter is currently enabled and emitting.
-
|code                = <code lua n>
+
  }}
-
function Update(self)
+
-
if self:IsEmitting() == false then
+
-
self:EnableEmission(true);
+
-
end
+
-
end
+
-
</code>
+
-
|output              = [[nil]]
+
-
|}}
+

Latest revision as of 00:55, 28 June 2012

Function
SyntaxIsEmitting( * None. )
Description:
Indicates whether this AEmitter is currently enabled and emitting.
ReturnsWhether it's emitting or not.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools