mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
26 lines
701 B
Plaintext
26 lines
701 B
Plaintext
/****************************************************************
|
|
File: UPSMON_GetIn_NearestCombat.sqf
|
|
Author: Ollem
|
|
|
|
Description:
|
|
Replacement of "setvehicleinit" command. Add init line to a spawned AI.
|
|
Parameter(s):
|
|
<--- netid object
|
|
<--- unit init
|
|
Returns:
|
|
Nothing
|
|
****************************************************************/
|
|
|
|
|
|
private ["_netID","_unit","_unitinit"];
|
|
|
|
_netID = _this select 0;
|
|
_unit = objectFromNetID _netID;
|
|
_unitinit = _this select 1;
|
|
_unitstr = "_unit";
|
|
|
|
_index=[_unitinit,"this",_unitstr] call UPSMON_Replace;
|
|
|
|
call compile format ["%1",_index];
|
|
|
|
if (UPSMON_Debug>0) then { diag_log format ["UPSMON 'UPSMON_fnc_setVehicleInit': %1 %2 %3",_unitinit,_index,_unit]; }; |