Jump to content
Sign in to follow this  
clydefrog

setFriend command not working in Arma 3?

Recommended Posts

Has anybody tried using the setFriend command in Arma 3 yet? I am trying to have civilians hostile towards Blufor so as well as having them set as friendly to Opfor in the editor I have WEST setFriend [CIVILIAN, 0]; CIVILIAN setFriend [WEST, 0]; in my init.sqf, but the civilians (which are armed and carrying weapons) will not shoot at me. Is this the same for anybody else here?

Share this post


Link to post
Share on other sites

Could anybody else here try this to see what happens, and if there is an issue is there any other alternatives to make the civilians enemy of blufor (not including grouping them to an opfor group leader)?

Share this post


Link to post
Share on other sites

Civilians are a special side. Civilian units are operating under different conditions, as far as I know, so it's not as simple to make them engage enemies. The easiest, although not the most elegant solution, would probably be making an OPFOR unit the leader of a group of civilians, and set this unit's Probability of presence slider to 0.

Share this post


Link to post
Share on other sites

clydefrog,

thought you might like to know you can have independent in game - not actual characters and in game models, but the side.

Put down opfor or blufor or civ in editor then edit that faction in mission.sqm and change "east" or "west" or "civ" to "guer" for all of the contents in the class of that faction -[please do not copy and paste this in any file as it may break your sqm file (class numbering is most def off)]- eg. change East (opfor) to Guer (independents)

class Item1
       {
           side="[b]EAST[/b]";
           class Vehicles
           {
               items=1;
               class Item0
               {
                   position[]={2438.7761,5.2823687,810.95898};
                   azimut=-161.841;
                   id=37;
                   side="[b]EAST[/b]";
                   vehicle="O_Soldier_F";
                   player="PLAY CDG";
                   leader=1;
                   lock="UNLOCKED";
                   skill=0.2;
                   description="Diver";
               };
           };
       };

change to

class Item1
       {
           side="[b]GUER[/b]";
           class Vehicles
           {
               items=1;
               class Item0
               {
                   position[]={2438.7761,5.2823687,810.95898};
                   azimut=-161.841;
                   id=37;
                   side="[b]GUER[/b]";
                   vehicle="O_Soldier_F";
                   player="PLAY CDG";
                   leader=1;
                   lock="UNLOCKED";
                   skill=0.2;
                   description="Diver";
               };
           };
       }

using this you can actually use the in editor function to set independent friendly to whomever you like. east/west/everyone/no-one

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  

×