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

 Need help with Coding

 Zombie Mod
 
wapeddell  
Posted: Wednesday, Jun 20 2012, 16:30
Quote Post


Snitch
Group Icon
Group: Members
Joined: Jul 16, 2011

XXXXX



GTA.Native.Function.Call("REQUEST_ANIMS", "move_injured_lower");
}
if (Pede.Exists() && Pede != null)
{
GTA.Native.Function.Call("SET_ANIM_GROUP_FOR_CHAR", Pede, "move_injured_lower"); GTA.Native.Function.Call("Set_Char_Move_Anim_Speed_Multiplier", Pede, 1.6f);


When I change this to this game crashes why is that


GTA.Native.Function.Call("REQUEST_ANIMS", "amb@bum_c");
}
if (Pede.Exists() && Pede != null)
{
GTA.Native.Function.Call("SET_ANIM_GROUP_FOR_CHAR", Pede, "amb@bum_c"); GTA.Native.Function.Call("Set_Char_Move_Anim_Speed_Multiplier", Pede, 1.6f);
PM
  Top
 

 
wapeddell  
Posted: Wednesday, Jun 20 2012, 16:44
Quote Post


Snitch
Group Icon
Group: Members
Joined: Jul 16, 2011

XXXXX



Scratch ^ I want to add this animation to all peds amb@bum_c walk_cycle_drunk_b
PM
  Top
 

 
motorsport71  
Posted: Wednesday, Jun 20 2012, 21:48
Quote Post


newbie modder
Group Icon
Group: Members
Joined: Oct 20, 2009

XXXXX



I believe that "amb@bum_c" is the animation group but not the animation you want? Maybe try this:

CODE

GTA.Native.Function.Call("REQUEST_ANIMS", "walkcycle_drunk_b");
}
if (Pede.Exists() && Pede != null)
{
GTA.Native.Function.Call("SET_ANIM_GROUP_FOR_CHAR", Pede, "amb@bum_c"); GTA.Native.Function.Call("Set_Char_Move_Anim_Speed_Multiplier", Pede, 1.6f);


the walkcycle_drunk_b is the animation itself, while amb@bum_c is the the group where it comes from.

i only mess with visual basic in scripthookdotnet so i'm not sure how the natives are pulled in c programming
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