Sign in to follow this  
doboy

Scripting actions in sequence

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites
Guest Qui-Gon Glenn

Oh my god you are the best person in the world lol

errbody luvs bead-v. especially scripty types.

 

ActionDoCommand.... That's interesting. I don't recall this function, thanks thread!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this