Jump to content

How to cancel MoveToObjectFollow


Lauriel

Recommended Posts

MoveToObjectFollow works great for what I need, but once my NPC starts following the other, I can't get it to stop.  Neither NPC is in the PC's party.  I put the following into the override script but it didn't fire.  I put it in the area script, it wouldn't fire.  The override script will fire if I leave the area and come back, so I know it works...except it doesn't when I need it to.  How do I get him to stop following?

Here's my override script block:

Spoiler

IF
	AreaCheck("<SOMEAREA>")
	Global("#L_FollowingXXX","MYAREA",1)
	See("<SOMEGUY>")
THEN
	RESPONSE #100
		SetGlobal("#L_FollowingXXX","MYAREA",0)
		MoveToPoint([530.3760])
END

 

 

Link to comment
3 hours ago, lynx said:

Use ActionOverride?

Actually, yeah.  I moved the script (modified of course), to another NPC and it worked.  I have no idea why it didn't work in the area script.  I probably did something stupid like forgetting to actually compile the thing.  Thank you for prompting me to try the script elsewhere.  It turns out I even like it much better where it is now than my previous solution.

Link to comment
40 minutes ago, lynx said:

If it was in the area script, you ordered the area to check what it sees and move. :)

LOL - no, I used TriggerOverride even though I didn't specify that in the post.  I can be dense sometimes, but not that dense in this case. :)  I seriously think I forgot to compile it...which is dense enough. LOL

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...