AEmitter:IsEmitting

From Data Realms Wiki

Revision as of 02:06, 14 October 2009 by Thoughtprocess (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntaxself:IsEmitting( )
Description:
Checks whether emissions (AddEmission) are activated or not. Useful for rockets/missiles that are supposed to have a short thrust-time.
ReturnsBoolean




Example
DescriptionChecks whether emission is activated. If it isn't, it enables emission.
Code
  1. function Update(self)
  2.         if self:IsEmitting() == false then
  3.                 self:EnableEmission(true);
  4.         end
  5. end
Outputnil
Personal tools