IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

This is for the discussion and releasing of tutorials for modifying GTA. Anything that isn't a tutorial will be deleted without notification.

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 N00bs guide to using anims

 Coding/Scripting
 
james227uk  
Posted: Sunday, Nov 2 2008, 17:08
Quote Post


One Spartan Army
Group Icon
Group: Andolini Mafia Family
Joined: Feb 5, 2008

en.gif

XXXXX



Using Animations | Tutorial for noobs


The Guide


First, lets learn how to load, check if available, use, and release anims

Before you can use an anim, you must first load the file its in

{See this fantastic list by Seemann: http://public.sannybuilder.com/anim/SAAnims.txt }

For example, If I wanted to use CAR_HOOKERTALK , I would load the file called PED


Now lets look at how we load an anim file:
CODE

04ED: load_animation "PED"


Like models, we must check if it is available:
CODE

04EE: animation "PED" loaded


Now were ready to use the anim with anim opcodes:
CODE

0605: actor $PLAYER_ACTOR perform_animation_sequence "CAR_HOOKERTALK" IFP_file "PED" 4.0 loop 1 0 0 0 time -1 // versionA



With the values in the opcode above, the actor will perform the anim forever, as its on a loop

So what about If you dont want the actor to perform it for ever? Simply:

CODE

0605: actor $PLAYER_ACTOR perform_animation_sequence "CAR_HOOKERTALK" IFP_file "PED" 4.0 loop 0 0 0 0 time 10000 // versionA


Now, the actor will perform the anim for ten seconds then stop


Now, lets say you finished, we must now release it:
CODE

04EF: release_animation "PED"


Notes/Trivia


- Like models, multiple anim files can be loaded at the same time
- Anims are .ifp files. The .ifp extension is irrelevant to using the anims

This post has been edited by james227uk on Friday, Jul 24 2009, 13:24
Users WebsitePMXbox Live
  Top
 

 
goin-god  
Posted: Sunday, Nov 2 2008, 17:47
Quote Post


High Roller
Group Icon
Group: $outh $ide Hoodz
Joined: Mar 18, 2007

ar.gif

Member Award




You can also use:

CODE
0812: AS_actor -1 perform_animation "LRGIRL_IDLELOOP" IFP_file "LOWRIDER" 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1 // versionB


and
CODE
0A1A: actor 88@ perform_animation "HIKER_POSE_L" IFP_file "MISC" 4.0 loopA 0 lockX 0 lockY 0 lockF 1 -1 ms // versionC


Users WebsitePMMSNPlayStation Network
  Top
 

 
mourad  
Posted: Sunday, Nov 2 2008, 19:58
Quote Post


Rat
Group Icon
Group: Members
Joined: Jul 9, 2008

mw.gif

XXXXX



nice job james. plz how dow you to create new ped in 3ds max or gmax i want the tutorial plz and thank you . "nice and god job"
Users WebsitePMMSN
  Top
 

 
james227uk  
Posted: Sunday, Nov 2 2008, 20:36
Quote Post


One Spartan Army
Group Icon
Group: Andolini Mafia Family
Joined: Feb 5, 2008

en.gif

XXXXX



Never EVER ask me a question about modelling. I really cant do modelling
Users WebsitePMXbox Live
  Top
 

 
goin-god  
Posted: Monday, Nov 3 2008, 00:01
Quote Post


High Roller
Group Icon
Group: $outh $ide Hoodz
Joined: Mar 18, 2007

ar.gif

Member Award




QUOTE (mourad @ Nov 2 2008, 16:58)
nice job james. plz how dow you to create new ped in 3ds max or gmax i want the tutorial plz and thank you . "nice and god job"

Search in the net for 3D MAX tutorials. Its pointless to create a modeling tuto for GTA. You need to read 3D MAx tutorials to know how to model. And then use GTA Tutos to put that model in GTA.
Users WebsitePMMSNPlayStation Network
  Top
 

 
mourad  
Posted: Monday, Nov 3 2008, 18:35
Quote Post


Rat
Group Icon
Group: Members
Joined: Jul 9, 2008

mw.gif

XXXXX



ok and thanks james you too goin-god god job
Users WebsitePMMSN
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG