• Using NPC Animations?
    3 replies, posted
Whenever I try to make my NPC perform an animation it never quite works. He/She starts to move for a split second then returns to the normal idle position. The function below is what I'm calling by pressing the space bar. How do I make it so that the NPC carries through with the whole animation? [lua] function npcjump() local seq = mynpc:LookupSequence("cheer1") mynpc:SetPlaybackRate( 1.0 ) mynpc:SetSequence(seq) end [/lua]
*bump* Can anyone get this to work right?
You should always use ResetSequence() . Also I'm unsure if using this with npc's is a good idea...
[QUOTE=Wizard of Ass;24227377]You should always use ResetSequence() . Also I'm unsure if using this with npc's is a good idea...[/QUOTE] Ok, I switched it to ResetSequence, but it still does the same thing. Why shouldn't I be using this on NPCs? Is there any other way I can make a NPC perform an animation?
Sorry, you need to Log In to post a reply to this thread.