Idle issue

Started by Dave Gilbert, Tue 30/09/2003 19:43:23

Previous topic - Next topic

Dave Gilbert

Hm, this is strange.  I have an idle view for a character (called "NISH") where she's playing a flute.  At one point, I want to have her stop playing the flute, so I pass the command:

SetCharacterIdle(NISH, -1, 0);

However, when she walks and stops, she starts playing the flute again.  I'm confuzzled and I'm sure it's something simple.  Any help?

-Dave

SSH

Are you 100% that that script command gets executed? Maybe you could set a global or display a message to double-check?

Have you tried
SetCharacterIdle(NISH, -1, 1);

just in case that "Setting DELAY to 0 causes the idle view to be looped continuously when the character is not moving - this is useful when for example the character is swimming and they need to tread water when idle. " is kicking in...
12

Pumaman

Yes, it's worth using a Display() after the SetCharacterIdle to ensure it's being called. Calling SetCharacterIdle with a view of -1 physically erases the stored idle view number, so it should be impossible for the idle animation to play after that.

SMF spam blocked by CleanTalk