Function _IrrAddDeleteAnimator

au3Irr2

au3Irr2 Function Reference

_IrrAddDeleteAnimator

Animator deleting its parent node after specified time (ms).

#Include <au3Irrlicht2.au3>
_IrrAddDeleteAnimator($h_Node, $i_Time)

 

Parameters

$h_Node Handle of a scene Node.
$i_Time Living time of the animator in milliseconds.

 

Return Value

Success: Handle of the created animator.
Failure: False

 

Remarks

You could use this animator to delete a falling rock for example, all you would need to do is attach the delete animator, a movement animator and then forget about it.

 

Related

_IrrRemoveAnimator

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $nodeCamera = _IrrAddCamera(10,10,10, 0,0,0 )
local $nodeTest = _IrrAddTestSceneNode()
_IrrSetNodeMaterialTexture( $nodeTest, _IrrGetTexture(".\media\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $nodeTest, $IRR_EMF_LIGHTING, $IRR_OFF )

_IrrAddDeleteAnimator($nodeTest, 3000)

WHILE _IrrRunning()
    _IrrBeginScene(0, 0, 0)
    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()