Skip to content

Instantly share code, notes, and snippets.

@BaerMitUmlaut
Created March 4, 2016 18:53
Show Gist options
  • Save BaerMitUmlaut/54df49d9a3a22dd4aea6 to your computer and use it in GitHub Desktop.
Save BaerMitUmlaut/54df49d9a3a22dd4aea6 to your computer and use it in GitHub Desktop.
fn_suicideBomber = {
params ["_unit"];
private ["_expl1", "_expl2", "_expl3"];
_unit addItem "ACE_DeadManSwitch";
// - Code from KK ---------------------------------------------------------
_expl1 = "DemoCharge_Remote_Ammo" createVehicle (position player);
_expl1 attachTo [_unit, [-0.1,0.1,0.15],"Pelvis"];
_expl1 setVectorDirAndUp [[0.5,0.5,0],[-0.5,0.5,0]];
_expl2 = "DemoCharge_Remote_Ammo" createVehicle (position _unit);
_expl2 attachTo [_unit, [0,0.15,0.15],"Pelvis"];
_expl2 setVectorDirAndUp [[1,0,0],[0,1,0]];
_expl3 = "DemoCharge_Remote_Ammo" createVehicle (position _unit);
_expl3 attachTo [_unit, [0.1,0.1,0.15],"Pelvis"];
_expl3 setVectorDirAndUp [[0.5,-0.5,0],[0.5,0.5,0]];
// ------------------------------------------------------------------------
{
[_unit, _x, "ACE_DeadManSwitch"] call ace_explosives_fnc_connectExplosive;
false
} count [_expl1, _expl2, _expl3];
};
@BaerMitUmlaut
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment