IgeObject

Method: indestructible

Gets / sets the indestructible flag. If set to true, the object will not be destroyed even if a call to the destroy() method is made.
indestructible (Number val)
  • Numberval
Returns * Returns this when setting the value or the current value if none is specified.

Set an entity to indestructible

var entity = new IgeEntity()
    .indestructible(true);

Set an entity to destructible

var entity = new IgeEntity()
    .indestructible(false);

Get an entity's indestructible flag value

var entity = new IgeEntity()
console.log(entity.indestructible());
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point