- Place two groups (blufor and independent).
- Make relationship friendly at start (editor or if enemy in editor, change the relation ship in init.sqf).
- in script or debug console trigger these lines:
west setfriend [resistance,0];
resistance setfriend [west,0];
- resistance reacts (and the sides are enemies) but independent don't shoot at Blufor.
On the other hand, a test with opfor:
- Place two groups (blufor and opfor). player in blue (unique or in group)
(set "player allowdamage false" if you want)
- Make relationship friendly at start (editor or if enemy in editor, change the relation ship in init.sqf), or just in debug console: east setfriend [west,1];
- observe red don't shoot at blue and don't seem to notice the presence
- write the contrary in debug: east setfriend [west,0];
- red react as the sides are enemies and red fires at blue.