$$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
| 1885 | $$END |
| 1886 | */ |
| 1887 | void 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 |
no test coverage detected