AEmitter:EnableEmission

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 19:41, 2 September 2009

Function
SyntaxEnableEmission( Boolean )
Description:
Toggles whether emissions (AddEmission) are activated or not. Useful for rockets/missiles that are supposed to have a short thrust-time.
Returnsnil




Example
DescriptionChecks whether emission is activated. When 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