mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Explosives - Fix incorrect shotParents (#9171)
* Update fnc_setupExplosive.sqf - Added `setShotParents` to the resulting explosive, enabling support for kill tracking * Add setShotParents to fnc_placeExplosive * Remove setShotParents from fnc_setupExplosive * Move setShotParents into place event * fix tabs --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
parent
52842b6f14
commit
19e72d7b71
@ -16,7 +16,15 @@
|
||||
*/
|
||||
|
||||
//Event for setting explosive placement angle/pitch:
|
||||
[QGVAR(place), {_this call FUNC(setPosition)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(place), {
|
||||
params ["_explosive", "", "", "_unit"];
|
||||
|
||||
_this call FUNC(setPosition);
|
||||
|
||||
if (isServer) then {
|
||||
_explosive setShotParents [_unit, _unit];
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(startDefuse), FUNC(startDefuse)] call CBA_fnc_addEventHandler;
|
||||
|
||||
//When getting knocked out in medical, trigger deadman explosives:
|
||||
|
Loading…
Reference in New Issue
Block a user