ActorApplyAnimation Method |
Applies the specified animation to this actor.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public void ApplyAnimation(
string library,
string name,
float fDelta,
bool loop,
bool lockX,
bool lockY,
bool freeze,
int time
)
Parameters
- library
- Type: SystemString
The animation library from which to apply an animation. - name
- Type: SystemString
The name of the animation to apply, within the specified library. - fDelta
- Type: SystemSingle
The speed to play the animation. - loop
- Type: SystemBoolean
if set to true the animation will loop. - lockX
- Type: SystemBoolean
if set to true allow this Actor to move it's x-coordinate. - lockY
- Type: SystemBoolean
if set to true allow this Actor to move it's y-coordinate. - freeze
- Type: SystemBoolean
if set to true freeze this Actor at the end of the animation. - time
- Type: SystemInt32
The amount of time (in milliseconds) to play the animation.
Exceptions See Also