Skip to content

ActionSpeakString & RandomWalk()

ZephiriusZephirius Member Posts: 411
edited February 2022 in Builders - Scripting
I can't get my cat to Random walk and speak it's string simultaneously without it screwing up the ActionSpeakString()
Basically, the string won't play while the cat RandomWalks()
if (GetIsBusyWithAnimation(OBJECT_SELF))
 AssignCommand(OBJECT_SELF, ActionSpeakString("Meow, Kill me now!"));

Post edited by Zephirius on

Comments

  • WilliamDracoWilliamDraco Member Posts: 175
    Yes, because ActionSpeakString is an Action, and gets added to the Action queue behind walking

    Just use the SpeakString function instead, it'll occur immediately.
  • ZephiriusZephirius Member Posts: 411
    Yes, because ActionSpeakString is an Action, and gets added to the Action queue behind walking

    Just use the SpeakString function instead, it'll occur immediately.

    Thanks for the pointer Willam. Lesson learned. Such a simple lesson at that. ;)
    AssignCommand(OBJECT_SELF, SpeakString("Meow, Kill me now!"));
    
Sign In or Register to comment.