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 GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

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

 Looping Ped animations

 
Braveheartuk  
Posted: Thursday, Jun 7 2012, 19:10
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 2, 2012

XXXXX



Is it possible to have a Ped loop an animation? I'm using a tick to generate a random event and I'd like for each Ped within each event to loop their animations, e.g. drunk animations. Also on the topic of drunk animations, how can I set a Ped to act drunk like they do outside of the clubs in EFLC? Or what would be the best way to mimic this behaviour?

EDIT: How can I get the Ped of which I'm targeting with a melee weapon? I've tried Game.LocalPlayer.GetTargetedPed() and Game.LocalPlayer.IsTargeting() but they only appear to work with guns.

Thanks

This post has been edited by Braveheartuk on Thursday, Jun 7 2012, 20:53
PM
  Top
 

 
hardsty1e  
Posted: Thursday, Jun 7 2012, 21:12
Quote Post


Rat
Group Icon
Group: Members
Joined: May 2, 2009

XXXXX



This might have ped animation loop - http://pastebin.com/pYrCuzuf

Edit* hippiecommunist's throwing knife script - http://pastebin.com/Td9JmP5b

This post has been edited by hardsty1e on Friday, Jun 8 2012, 07:49
PM
  Top
 

 
Braveheartuk  
Posted: Thursday, Jun 7 2012, 23:48
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 2, 2012

XXXXX



Thanks for those. The second one, peds targeted with melees, is that entire script to achieve this or am I missing the part where this is done?
PM
  Top
 

 
DGKN  
Posted: Friday, Nov 2 2012, 19:08
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 26, 2012

XXXXX



If you're still there, you can use this parameter to loop an animation : "AnimationFlags.Unknown05".

An example :

Ped.Task.PlayAnimation(new AnimationSet("amb@hang_fat_cl_b"), "stand_idle_e", 5.0f, AnimationFlags.Unknown05);




PM
  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