Jump to content
LoOni3r

AI Unit stop fire on player

Recommended Posts

Hello everybody,

 

Is there a command that prohibits the shooting of a single AI on the player?

 

I am currently working with Captive. This unfortunately affects all opponents.

 

doWatch that would be a possibility. Unfortunately, the AI shoots again by itself.

 

many thanks for your help.

Share this post


Link to post
Share on other sites

Thank you for your answer.

setBehaviour does not solve my problem..

The unit should not completely stop firing if other players are nearby.

 

Share this post


Link to post
Share on other sites

no, it affects all targets.

The unit should stop the fire on a particular player and continue to fire at other players

Share this post


Link to post
Share on other sites

ok i think you have a couple of options then 1. you can swich side of the unit to civilian 2. you can set unit capture put this in initfield of unit: this setCaptive true;

and when you want to undo the captive put this : this setCaptive false;

Share this post


Link to post
Share on other sites
2 hours ago, LoOni3r said:

The unit should stop the fire on a particular player and continue to fire at other players

 

Hello there Guys !

 

You could change the certain player's side instead.

Share this post


Link to post
Share on other sites

change player side == captive -> undesirable

 

forgetTarget in loop

It will probably be if I can not solve it otherwise

Share this post


Link to post
Share on other sites
1 minute ago, LoOni3r said:

change player side == captive -> undesirable

 

To be honest i don't get it , but as you said you don't want the ai to shoot a certain player, so it's possible to change the side only for this player.

  • Like 1

Share this post


Link to post
Share on other sites
			[_x]spawn{
				for "_i" from 1 to 29 do {
					_this select 0 doWatch objNull;
					sleep 0.05;
				};
			};

works well
unfortunately a dirty solution.

had hoped for a true / false function that would stop the fire on a particular player.

  • Like 1

Share this post


Link to post
Share on other sites

As Beno_83AU wrote: forgetTarget . That's the solution for your specific case.

  • Like 3

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×