Can i make a following character keep checking my position.(solved)

Started by timlump, Sat 06/05/2006 12:24:06

Previous topic - Next topic

timlump

In my game I noticed that when a NPC is told to follow they go to your last screen position before following again, how would I make them adjust their course as I move, since if I then tell them to stop following  they won't stop till they reach my last location.

Thanks if help can be provided.

Ashen

What have you got for the eagerness parameter when you start the following?

Quote from: The ManualEAGERNESS sets on average how long the character will stand around before checking if he needs to move again. Setting this to 0 means that he will always be on the move until he reaches CHARTOFOLLOW; setting this to 99 means that he will pause and think for a while on route. Values in between specify different lengths of idle time.

So, a lower eagerness should make them adapt to the PCs new position quicker.

Alternatively, what if you add a Character.StopMoving() command after you stop them following? (To stop them trying to reach the last known location.)
I know what you're thinking ... Don't think that.


SMF spam blocked by CleanTalk