About Store Forum Documentation Contact



Post Reply 
control fist animation
Author Message
LINOGE Offline
Member

Post: #1
control fist animation
Hi all. I'm looking a way to recognize (in my code) if the player hands or not a weapon on hand. I want to apply an "fist" animation if the player hands a weapon and stop it if he get nothing on hands. Had tryed some codes with no success. I'm thinking in something like this:

Code:
if(player have weapon in hands)
{
    sac.fist_l = &cskel.getskelAnim("animation");
} else
{
    cskel.clear();
}

I'm in the right way? Can someone help me?
11-07-2011 08:54 PM
Find all posts by this user Quote this message in a reply
LINOGE Offline
Member

Post: #2
RE: control fist animation
Got it, nvm...

Code:
if (inv.slots[SLOT_ARM_R] != -1) T.playAnimation("anim/female_04/f04_fist_R1.anim");

if(inv.slots[SLOT_ARM_L] != -1)    T.playAnimation("anim/female_04/f04_fist_L1.anim");
11-07-2011 10:42 PM
Find all posts by this user Quote this message in a reply
Post Reply