au3Irr2 Function Reference
_IrrSetNodeAnimationRangeSets the range of animation that is to be played in the node.
#Include <au3Irrlicht2.au3>
_IrrSetNodeAnimationRange($h_Node, $i_Start, $i_End)
Parameters
$h_Node | Handle to a character scene node. |
$i_Start | Start frame |
$i_End | End frame |
Return Value
Success: TrueFailure: False
Remarks
An anaimation sequences might run from 0 to 200 frames and a sequence where your character is running might only occupy a portion of this.
Related
_IrrGetMesh, _IrrAddMeshToScene, _IrrGetMeshFrameCount, _IrrGetNodeAnimationFrame, _IrrPlayNodeMD2Animation, _IrrSetNodeAnimationSpeed
Example
#include "au3Irrlicht2.au3"
Global $hMD2Mesh, $hMeshTexture, $hSceneNode
_IrrStart()
$hMD2Mesh = _IrrGetMesh("./media/zumlin.md2")
$hMeshTexture = _IrrGetTexture("./media/zumlin.pcx")
$hSceneNode = _IrrAddMeshToScene($hMD2Mesh)
_IrrSetNodeMaterialTexture($hSceneNode, $hMeshTexture, 0)
_IrrSetNodeMaterialFlag($hSceneNode, $IRR_EMF_LIGHTING, $IRR_OFF)
_IrrSetNodeAnimationRange($hSceneNode, 200, 230)
_IrrAddCamera(50, 0, 0, 0, 0, 0)
While _IrrRunning() And Sleep(10)
_IrrBeginScene(240, 255, 255)
_IrrDrawScene()
_IrrEndScene()
WEnd
_IrrStop()