PlayerApplyAnimation Method (String, String, Single, Boolean, Boolean, Boolean, Boolean, Int32) |
Apply an animation to this player.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public void ApplyAnimation(
string animationLibrary,
string animationName,
float fDelta,
bool loop,
bool lockX,
bool lockY,
bool freeze,
int time
)
Parameters
- animationLibrary
- Type: SystemString
The name of the animation library in which the animation to apply is in. - animationName
- Type: SystemString
The name of the animation, within the library specified. - fDelta
- Type: SystemSingle
The speed to play the animation (use 4.1). - loop
- Type: SystemBoolean
Set to True for looping otherwise set to False for playing animation sequence only once. - lockX
- Type: SystemBoolean
Set to False to return player to original x position after animation is complete for moving
animations. The opposite effect occurs if set to True.
- lockY
- Type: SystemBoolean
Set to False to return player to original y position after animation is complete for moving
animations. The opposite effect occurs if set to True.
- freeze
- Type: SystemBoolean
Will freeze the player in position after the animation finishes. - time
- Type: SystemInt32
Timer in milliseconds. For a never ending loop it should be 0.
See Also