Kexikus

Can't get Jolee walking anywhere with a script

Recommended Posts

Well, I've run into a problem that probably has a very easy solution, but I just can't figure it out.

I'm trying to get Jolee to walk to a set location (on top of the Rakatan temple) but I just can't get him to do that.

 

Here's my script (or atleast the relevant part):

object oJolee = GetObjectByTag("Jolee");

location lJolee = Location(Vector(88.0, 71.50, 13.75), 0.0);

AssignCommand(oJolee, ActionMoveToLocation(lJolee, TRUE));

Then there is a conversation pause, the void main() etc, but that shouldn't be important since that and the rest of the script is working fine.

I also know that the location is correct and valid, since I can have another character walk there without any problems. So I assume it's something with Jolee's tag, but I have no idea what.

 

Any help would be great, thanks :)

Share this post


Link to post
Share on other sites

In that case, try adding the following before you try telling him to move:

 

SetCommandable(TRUE, oJolee);

AssignCommand(oJolee, ClearAllActions());

 

And then you'd probably want to DelayCommand your movement action by 0.5 to avoid colliding with the ClearAllActions.

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.