Jump to content
Sign in to follow this  
Gameadd1cted

Original side of renegade unit

Recommended Posts

Once a BLUEFOR kills 5 civilians, it becomes a rendegade.

Nevertheless, the kills from the renegade unit should still be accountable to the original side.

Therefore the following code stops adding to the counter.

if (side _killer == west) then
{
	a3d_int_civilian_killed_by_west = a3d_int_civilian_killed_by_west + 1;
	publicVariable "a3d_int_civilian_killed_by_west";
};

I also tried:

if (side [color="Red"]group [/color]_killer == west) then
{
	a3d_int_civilian_killed_by_west = a3d_int_civilian_killed_by_west + 1;
	publicVariable "a3d_int_civilian_killed_by_west";
};

The counter still stops after 5 civilian victims.

Is there anyway I can obtain the original side of the unit before becoming a renegade?

Share this post


Link to post
Share on other sites

getNumber (configFile/"CfgVehicles"/(typeOf _killer)/"side")==1

0=east

1=west

2=resistance

3=civilian

Share this post


Link to post
Share on other sites

wow...

Thanks a lot, it works.

A couple of questions:

1. If a BLUFOR gets into an OPFOR car, the kill is reported as of OPFOR. Is there anyway to count the kill for BLUEFOR?

2. Is there any documentation on CfgVehicles (apart from this)? I mean, where did you get the "side" values?

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  

×