new ()
Kills an entity after a timer. Use reset() to start timer.
Returns:
super(function()
@:value(true)active:Bool = true
Whether or not this component gets updated
reset (time:Float):Void
Start the timer with a given time
Parameters:
null
time
get_name ():String
returns the name of this component
get_priority ():Int
returns the priority of this component
has_tag (tag:String):Bool
Returns whether or not this component is tagged with given tag
tag
Bool return tags.indexOf(tag) >= 0
on_add ():Void
Called when added to an entity
on_remove ():Void
Called when removed from an entity
set_priority (value:Int):Void
sets the priority of this component
value