Difference between revisions of "TASK PLAY ANIM"

From GTAMods Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
 
|p3d=AnimationSet, use REQUEST_ANIMS to load an AnimationSet
 
|p3d=AnimationSet, use REQUEST_ANIMS to load an AnimationSet
 
|p4t=float
 
|p4t=float
|p4d=Unknown
+
|p4d=Speed
 
|p5t=boolean
 
|p5t=boolean
 
|p5d=Loop the Animation
 
|p5d=Loop the Animation
|p6t=Unknown(boolean?)
+
|p6t=float
|p7t=Unknown(boolean?)
+
|p6d=X
|p8t=Unknown(boolean?)
+
|p7t=float
|p9t=Unknown
+
|p7d=Y
 +
|p8t=float
 +
|p8d=Z
 +
|p9t=int
 +
|p9d=MS
 
|r=0
 
|r=0
 
}}
 
}}
Line 20: Line 24:
 
Char will play an animation
 
Char will play an animation
  
'''Alice-Example: ''' TASK_PLAY_ANIM(CharHandle.a, "hello", "gestures@niko", f(8), 0, 0, 0, 0, -1)
+
Alice-Example:  
 +
TASK_PLAY_ANIM(CharHandle.a, "hello", "gestures@niko", f(8), 0, 0, 0, 0, -1)
 +
 
 +
SCO Code example:
 +
TASK_PLAY_ANIM( 0, "f_insertcard", "amb@atm", 8.00000000, 0, 0, 0, 0, -2 );

Latest revision as of 21:46, 24 July 2012

TASK_PLAY_ANIM
Number of parameters: 9
Parameter #TypeDescription
1.integerCharHandle
2.stringAnimationID
3.stringAnimationSet, use REQUEST_ANIMS to load an AnimationSet
4.floatSpeed
5.booleanLoop the Animation
6.floatX
7.floatY
8.floatZ
9.intMS
Return value:
TypeDescription
None

Char will play an animation

Alice-Example:

TASK_PLAY_ANIM(CharHandle.a, "hello", "gestures@niko", f(8), 0, 0, 0, 0, -1)

SCO Code example:

TASK_PLAY_ANIM( 0, "f_insertcard", "amb@atm", 8.00000000, 0, 0, 0, 0, -2 );