$$ACTION Custom Play imediate object [o:Object] animation from frame [i:StartFrame] to [i:EndFrame=1], cycle time = [f:CycleTime=1.0], looping = [b:Looping=FALSE] aObjPlayImmAnim 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 C
| 633 | $$END |
| 634 | */ |
| 635 | void aObjPlayImmAnim(int objref, int startframe, int endframe, float cycletime, bool looping) { |
| 636 | int flags = 0; |
| 637 | |
| 638 | if (!qObjExists(objref)) |
| 639 | return; |
| 640 | |
| 641 | if (looping) |
| 642 | flags |= AIAF_LOOPING; |
| 643 | |
| 644 | Obj_SetCustomAnim(objref, (float)startframe, (float)endframe, cycletime, flags | AIAF_IMMEDIATE, -1, -1); |
| 645 | } |
| 646 | |
| 647 | /* |
| 648 | $$ACTION |
no test coverage detected