Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
1para{god-father}

Only SatchelCharge can destroy the chopper

Recommended Posts

Trying to make it so only a Satchel Charge can destroy the chopper , but for some reason it will not blow using that charge ?

Where am i going wrong as i am sure that is the correct Classname

_chopper = "O_Heli_Light_02_F" createVehicle _pos;
_chopper setFuel 0;
_chopper lock true;
_chopper addEventHandler ["HandleDamage", {
   if ((_this select 4) == "SatchelCharge_Remote_mag") then [{_this select 2},{0}];
}]; 

Edited by 1PARA{God-Father}

Share this post


Link to post
Share on other sites

Try SatchelCharge_Remote_Ammo instead.

Edit:

I tried your code with SatchelCharge_Remote_Ammo but I couldn't get it working anyway, the only way I was able to make it work is with setDamage, like this:

_chopper = "O_Heli_Light_02_F" createVehicle (position player);
_chopper setFuel 0;
_chopper lock true;
_chopper addEventHandler ["HandleDamage", {
hint format["Projectile: %1\nDamage: %2", (_this select 4), (_this select 2)];
   if ((_this select 4) == "SatchelCharge_Remote_Ammo") then [{(_this select 0) setDamage 1;},{0}];
}];

Edited by wok

Share this post


Link to post
Share on other sites
Sign in to follow this  

×