ActorSpotAnim

Group
player
Methods
6
Fields
None

Methods

MethodReturnsDescription
getId()numberThe spot animation's id (SpotanimID).
getHeight()numberThe height it is drawn at above the actor.
getStartCycle()numberThe client cycle it starts on.
getFrame()numberThe frame its animation was on when getSpotAnims() handed it out (a copy: ask getSpotAnims() again for the frame now), -1 where it did…
getCycle()numberThe client cycles it had spent on that frame, as getFrame() a copy.
getSlot()numberThe slot it occupies.

Returned by

MethodReturnsDescription
Actor.getSpotAnims{ActorSpotAnim}The spot animations the actor carries, one per slot in use, in slot order.

Method details

getFrame

getFrame: (ActorSpotAnim) -> number

The frame its animation was on when getSpotAnims() handed it out (a copy: ask getSpotAnims() again for the frame now), -1 where it did not read.

getCycle

getCycle: (ActorSpotAnim) -> number

The client cycles it had spent on that frame, as getFrame() a copy.