Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Fenriswolf

Following Actor

Recommended Posts

Hello!
I want an friendly Actor that starts following the player when he gets near (of course without attacking him). Now if the player brings this follower to a specific sector, he should stop following and a script should be executed. Is this possible?
Up to now the "test-actor" looks like this:

ACTOR Schaf 9971
{
  Game Heretic
  Speed 10
  Radius 12
  Height 32
  +SOLID
  +NODROPOFF
  States
  {
  Spawn:
    MOSL A 10 A_Look
    Loop
  See:
    MOSL A 4 A_Chase
    Loop
  }
} 
Now, he starts following me, but beside the fact that he does not stand still after reaching me (he draws big circles around me all the time) i have no clue how to do the rest... how can I ask if he reached a certain sector so that he stops following and a var changes?
Thank you very much!

Share this post


Link to post

For getting it to stop when it reaches the player, try giving it a melee state which doesn't actually do anything aside from waiting a few frames.

I don't know much about actor control. When it crosses a line, you can call a script to give it an inventory item. In the DECORATE code, check for this inventory item and jump into a non A_Chase routine.

No idea if this actually helps you at all.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×