Jump to content

Photo

Play Idle - Actor Help?

script animation actor

  • Please log in to reply
5 replies to this topic

#1

    Fan

  • Account closed
  • PipPipPip
  • 341 posts

Awhile ago I was having problems ending idles that use this script .

Eventually I found out playing the StopIdle_Loose idle will end most idles. One thing the wiki mentions is if you play the same idle on the same actor(if it's a looped idle) it will end the idle, but this never worked for me, now for some reason StopIdle_Loose doesn't work, so I'm wondering has anyone been able to end an idle by playing it twice? Because of course that isn't working either



#2
Rasikko

Rasikko

    The Arbiter of Time

  • Members
  • PipPipPipPip
  • 1,406 posts

That one doesn't have much documentation unfortunately. Perhaps you can try having the actor play the idle, then disable the actor's AI after a certain amount of seconds, then renable the AI. Obviously this wont work on the player.



#3

    Fan

  • Account closed
  • PipPipPip
  • 341 posts

Unfortunately it's the player I'm playing the idle :/ Though for the scene I'm using, the player is set as ai driven, so perhaps it will work. [EDIT] Nope, didn't work.



#4
fore

fore

    behavior mudcrab

  • Premium Member
  • 12,443 posts

To stop a cyclic animation you can:

- jump (player)

- play an acyclic (onetime) animation

- debug.SendAnimationEvent(<player>,"IdleForceDefaultState")



#5

    Fan

  • Account closed
  • PipPipPip
  • 341 posts

Force default state worked perfectly, thanks!



#6
lokimanwe

lokimanwe

    Stranger

  • Members
  • Pip
  • 4 posts

Force default state worked perfectly, thanks!

same problem..thx for tip @fore. works fine







Also tagged with one or more of these keywords: script, animation, actor

IPB skins by Skinbox
Page loaded in: 0.921 seconds