MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aObjPlayAnim

Function aObjPlayAnim

scripts/DallasFuncs.cpp:1887–1894  ·  view source on GitHub ↗

$$ACTION Objects Play object [o:Object] animation from frame [i:StartFrame] to [i:EndFrame=1], cycle time = [f:CycleTime=1.0], looping = [b:Looping=FALSE] aObjPlayAnim Play object animation Plays an animation for an object Parameters: Object: the object to animate StartFrame: the frame number of the start of the animation EndFrame: the frame number of the end of the animation CycleTime: h

Source from the content-addressed store, hash-verified

1885$$END
1886*/
1887void aObjPlayAnim(int objref, int startframe, int endframe, float cycletime, bool looping) {
1888 int flags = 0;
1889
1890 if (looping)
1891 flags |= AIAF_LOOPING;
1892
1893 Obj_SetCustomAnim(objref, (float)startframe, (float)endframe, cycletime, flags, -1, -1);
1894}
1895
1896/*
1897$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
PlayOnAnimationFunction · 0.85
PlayOffAnimationFunction · 0.85
aMatCenPuzzleInitFunction · 0.85
aMatCenPuzzleResetFunction · 0.85

Calls 1

Obj_SetCustomAnimFunction · 0.85

Tested by

no test coverage detected