Jump to content

Stop Friendly NPCS following you


Kuhe
Go to solution Solved by Noodle,

Recommended Posts

Posted

I was wondering if there was a way to stop the friendly Npcs from following you, as its annoying when I change my playerteam to enemy and try to fight the rebels they just keep trying to move and follow me, is there anyway to change it? 

  • Solution
Posted

As far as I know, the only way you can do that is by doing a script that tell the NPCs to not follow you. 

 

In one of my maps I turned rebels into enemies by applying the following script to them:

set ( "SET_PLAYER_TEAM", "TEAM_ENEMY" );
set ( "SET_ENEMY_TEAM", "TEAM_PLAYER" );
set ( "SET_BEHAVIOR_STATE", "BS_DEFAULT" );
set ( "SET_LEADER", "NULL" );
set ( "SET_CHASE_ENEMIES", "true" );
set ( "SET_LOOK_FOR_ENEMIES", "true" );

SET_LEADER "NULL" makes them stop following you.

Smoo and TheWhitePhoenix like this
Posted

As far as I know, the only way you can do that is by doing a script that tell the NPCs to not follow you. 

 

In one of my maps I turned rebels into enemies by applying the following script to them:

set ( "SET_PLAYER_TEAM", "TEAM_ENEMY" );
set ( "SET_ENEMY_TEAM", "TEAM_PLAYER" );
set ( "SET_BEHAVIOR_STATE", "BS_DEFAULT" );
set ( "SET_LEADER", "NULL" );
set ( "SET_CHASE_ENEMIES", "true" );
set ( "SET_LOOK_FOR_ENEMIES", "true" );

SET_LEADER "NULL" makes them stop following you.

This could work for me too. Thanks dude. :)

Noodle likes this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...