mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
98b088f26f
When staging a spectator (physically applying the spectator state) the unit position is saved for potential later restoration. This shouldn't be done multiple times since the function can be called again to reset staged units.
21 lines
328 B
Plaintext
21 lines
328 B
Plaintext
/*
|
|
* Author: SilentSpike
|
|
* Un-set as spectator on respawn
|
|
* Part of the spectator during death system
|
|
*
|
|
* Arguments:
|
|
* 0: New unit <OBJECT>
|
|
* 1: Old unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None <NIL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit","_oldUnit"];
|
|
|
|
[_unit,false] call FUNC(setSpectator);
|