2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2021-10-14 15:46:43 +00:00
|
|
|
/*
|
|
|
|
* Author: Jonpas
|
|
|
|
* Handles AI spawn and requests a rebalance if applicable.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2024-04-04 11:01:12 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2021-10-14 15:46:43 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2024-04-04 11:01:12 +00:00
|
|
|
* [cursorObject] call ace_headless_fnc_handleSpawn
|
2021-10-14 15:46:43 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2024-04-04 11:01:12 +00:00
|
|
|
params ["_unit"];
|
|
|
|
TRACE_1("Spawn",_unit);
|
2021-10-14 15:46:43 +00:00
|
|
|
|
2024-04-04 11:01:12 +00:00
|
|
|
// Exit if unit is player or UAV crew
|
|
|
|
if (isPlayer _unit || {unitIsUAV _unit}) exitWith {};
|
2021-10-14 15:46:43 +00:00
|
|
|
|
|
|
|
// Rebalance
|
|
|
|
[false] call FUNC(rebalance);
|