Jump to content
Sign in to follow this  
1para{god-father}

Civilian turn onto Bluefor Issue

Recommended Posts

Having an issue turning a civilian into enemy should this not work ?

// start the spawning                   
_SuicideBomberG = CreateGroup CIVILIAN;
_SuicideBomberD = _SuicideBomberG createUnit [_SuicideBomberTypeD, [(_positionS select 0)+5, (_positionS select 1), 0], [], 180, "CAN_COLLIDE"];
{_SuicideBomberD addMagazine _weaponmag;} forEach [1,2];
_SuicideBomberD addWeapon _weapon;
_SuicideBomberD setFriend [west, 0]; // ?????this should turn him into Enemy ??????

Share this post


Link to post
Share on other sites

I was looking and come across this hence i thought i might be in luck ! but look like it will not work :(

I suppose i can just Group to OPFOR when i need to ?

http://community.bistudio.com/wiki/Side_relations

2) Armed civilians will automatically shoot at anybody who is not friendly to Resistance. Or alternatively, you can make Civilians hostile to other sides by using the setFriend command:

civilianUnit setFriend [west, 0]; // Will cause civilians to shoot at West, but not West and Civilians

Share this post


Link to post
Share on other sites

Yep just use

_SuicideBomberG = CreateGroup east;

Share this post


Link to post
Share on other sites

Has anyone tried creating normally blufor units and creating them to an opfor side?

_grp = CreateGroup OPFOR; 
_unit1 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];
_unit2 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];
_unit3 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];
_unit4 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];

paste that in the debug and watch them all kill each other

Share this post


Link to post
Share on other sites
Has anyone tried creating normally blufor units and creating them to an opfor side?

_grp = CreateGroup OPFOR; 
_unit1 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];
_unit2 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];
_unit3 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];
_unit4 = _grp createUnit ["B_Soldier_F", getPos player, [], 0, "NONE"];

paste that in the debug and watch them all kill each other

Ha, nice, that would be handy for a mutiny type situation.

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  

×