doboy Posted September 15, 2017 Posted September 15, 2017 I'm trying to get an NPC to play an animation after walking to a location. As far as I understand, Actions() are placed in a queue and perform one after another, but I'm not entirely sure. I have something like AssignCommand(guy, ActionMoveToLocation() ); DelayCommand(1.0, same guy, ActionPlayAnimation() ) ); // I just put delay command because I've had problems with scripting actions in sequence very fast. Now I have a workaround, but it's kind of ugly. Hopefully I made my situation clear here. Is there something I'm not understanding? Quote
bead-v Posted September 15, 2017 Posted September 15, 2017 That should work like you described. Though maybe writing ActionDoCommand(ActionPlayAnimation()) will help if it's not working. I vaguely remember something about some Action...() function not really behaving like an action function, it may be this one but I'm really not sure. If it is this one then ActionDoCommand() should fix it. Quote
doboy Posted September 15, 2017 Author Posted September 15, 2017 That should work like you described. Though maybe writing ActionDoCommand(ActionPlayAnimation()) will help if it's not working. I vaguely remember something about some Action...() function not really behaving like an action function, it may be this one but I'm really not sure. If it is this one then ActionDoCommand() should fix it. Oh my god you are the best person in the world lol 1 Quote
Guest Qui-Gon Glenn Posted September 16, 2017 Posted September 16, 2017 Oh my god you are the best person in the world lolerrbody luvs bead-v. especially scripty types. ActionDoCommand.... That's interesting. I don't recall this function, thanks thread! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.