ACE3/addons/spectator/functions/fnc_handleKilled.sqf
2015-07-18 18:53:30 +01:00

24 lines
469 B
Plaintext

/*
* Author: SilentSpike
* Cache necessary details and process unit for spectator on death
*
* Arguments:
* 0: Corpse <OBJECT>
* 1: Killer <OBJECT>
*
* Return Value:
* None <NIL>
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit","_killer"];
// Remove from group to prevent appearing on HUD upon respawn
[_unit, true, QGVAR(isSpectator), side group _unit] call EFUNC(common,switchToGroupSide);
GVAR(camUnit) = _killer;
GVAR(camMode) = 2;