Jump to content
Sign in to follow this  
malcon

Help killed addEventhandler

Recommended Posts

Ok i have 3 goups Blufor opfor and Indi

But in indi i wont that if a indi is killing a indi is getting the kill insted a minus point

Please help me the code i have is not working

		class Item34
	{
		side="GUER";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={12612.201,454.63181,2532.0989};
				id=41;
				side="GUER";
				vehicle="Soldier_TL_PMC";
				player="PLAY CDG";
				leader=1;
				skill=0.60000002;
				text="guer1";
				description="PMC - Team Coordinator";
				init="this addEventhandler [""Killed"", {if((_this select 0 != _this select 1) && side (_this select 1) == GUER) then {(_this select 1) addScore 2};}];";
			};
		};
	};
	class Item35
	{
		side="GUER";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={12622.684,456.11368,2532.5234};
				id=42;
				side="GUER";
				vehicle="GUE_Soldier_Scout";
				player="PLAY CDG";
				leader=1;
				skill=0.60000002;
				text="guer2";
				description="Guerilla - Sniper";
				init="this addEventhandler [""Killed"", {if((_this select 0 != _this select 1) && side (_this select 1) == GUER) then {(_this select 1) addScore 2};}];";
			};
		};
	};

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  

×