Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
DieAngel

how do you change an unit's side?

Recommended Posts

I couldn't find this info anywhere so i thought i should post it here.

Basically i would like to use civilians in the west or east side, because none of the factions attack civilians.

How would i do this?

Share this post


Link to post
Share on other sites

You cannot directly change a units side in game.

In the editor, you can group a civilian side unit with a guer/opfor/blufor leader. Then set the probability of the leader existing to 0. The group will inherit the leaders side.

You can create any unit class in any group using script commands.

You can manually edit the mission.sqm file to change the side.

edit: another possible way to do it would be using addRating to make the civilian units renegade (enemy to all units).

Share this post


Link to post
Share on other sites

I think (never experimented it myself) you can try to change units side by using the following command : side unit in a script.

For example : ? (put a condition here) : side name of the unit == blufor will (normally) turn the unit into a blufor member.

Share this post


Link to post
Share on other sites

No, that won't work. The "==" function is used to check whether a value is equal to an other value, not to set values. There is no setside function that I am aware of. Fasad suggestions are your best bet.

Share this post


Link to post
Share on other sites
Guest Ti0n3r

I can't understand why they didn't add a command to alter a units side in ArmA. It was one of the things I was expeting and hoping for ever since the first OFP patch.

Maybe in the next patch, eh? inlove.gif

Share this post


Link to post
Share on other sites

I actually think there's a pretty simple command for this, read about it somewhere, but can't find it now >_<

Share this post


Link to post
Share on other sites

In my missions I wanted the Civ to attack west, and west attack Civ off the bat. What I ended up doing is in my init.sqs I used the setFriend command.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">west setFriend [civilian, 0]

civilian setFriend [west, 0]

If you only set one then one side would see them as enemy and one whould not see them as an enemy.

Share this post


Link to post
Share on other sites

In my missions I wanted the Civ to attack west, and west attack Civ off the bat. What I ended up doing is in my init.sqs I used the setFriend command.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">west setFriend [civilian, 0]

civilian setFriend [west, 0]

If you only set one then one side would see them as enemy and one whould not see them as an enemy.

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  

×