Jump to content
Sign in to follow this  
carlostex

How can i make one specific unit enemy to anyone?

Recommended Posts

I searched around a lot of threads but couldn't get an answer for this. I have put one east unit on the map but i want it to attack east players and players of other factions.

I don't understand why BIS haven't still created a setside command that would allow us to give a specific side for one unit only like this for instance:

this setside "enemy"

or use sideEnemy this way:

this sideEnemy true

Is there any way that i can give renegade side for an AI unit? Giving negative addrating for all east players is not a good solution.

Share this post


Link to post
Share on other sites

One way is if your not using the independent factions, in the editor set independent to unfriendly to everyone, then group your "guy" with a higher ranking independent, then set the higher rank man to a probability of presence to 0. Then your guy will be a east character but will be on the side of independent and unfriendly to everyone.

Share this post


Link to post
Share on other sites
One way is if your not using the independent factions, in the editor set independent to unfriendly to everyone, then group your "guy" with a higher ranking independent, then set the higher rank man to a probability of presence to 0. Then your guy will be a east character but will be on the side of independent and unfriendly to everyone.

Yeah i thought of that but the problem is i'm using all 3 factions. I actually tried addrating as well and it doesn't work.

Share this post


Link to post
Share on other sites
When the rating gets below -2000, the unit's side switches to "ENEMY" and the unit is attacked by everyone.

Did this not work?

Remember to also compensate for eventual already gained score.

_rating = rating _unit;

_adjust = (_rating _unit) + 2000;

_unit addRating -_adjust;

Share this post


Link to post
Share on other sites

i forgot to mention this is a MP mission. addrating does not seem to work

---------- Post added at 09:33 AM ---------- Previous post was at 09:32 AM ----------

Please BIS give us a "setside" command. I'm sure im not the only one who thinks its useful.

Share this post


Link to post
Share on other sites

If it's an AI unit, it is local to the server. So the addRating command needs to run on the server.

If it's a unit in a player group, it is local to the player client. The command needs to run on there.

(not tested)

Share this post


Link to post
Share on other sites
)rStrangelove;1910007']If it's an AI unit' date=' it is local to the server. So the addRating command needs to run on the server.

If it's a unit in a player group, it is local to the player client. The command needs to run on there.

(not tested)[/quote']

Yes i'm aware. I've put on the init line of every east player:

this addrating -9000

AI unit still does not attack east players.

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
Sign in to follow this  

×