Click or drag to resize

BasePlayerApplyAnimation Method (String, String, Single, Boolean, Boolean, Boolean, Boolean, Int32)

Apply an animation to this BasePlayer.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public virtual void ApplyAnimation(
	string animlib,
	string animname,
	float fDelta,
	bool loop,
	bool lockx,
	bool locky,
	bool freeze,
	int time
)

Parameters

animlib
Type: SystemString
The name of the animation library in which the animation to apply is in.
animname
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