View Single Post
Old 07-11-2007, 10:27 PM   #4
Griswald
 
Join Date: Aug 2002
Location: ent->ps.get_loc();
Posts: 25
you shouldn't even need the "int anim" part, but you do need to pass on the entity to the function you created. The function for animating (I believe) is G_SetAnim:

G_SetAnim(ent, &ent->client->pers.cmd, SETANIM_BOTH, BOTH_GESTURE1, SETANIM_FLAG_OVERRIDE|SETANIM_FLAG_HOLD, 0);

However, there is also PM_SetAnim and BG_SetAnim (an NPC_SetAnim exists, but thats for npcs of course). If someone else could clarify when each instance are best used, I'm sure the Original poster would be more educated as well as the rest of us =)


-- Griswald, RKR Project Co-Leader
Griswald is offline   you may: quote & reply,