mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
23 lines
680 B
Plaintext
23 lines
680 B
Plaintext
/****************************************************************
|
|
File: UPSMON_fnc_setVehicleVarName.sqf
|
|
Author: Ollem
|
|
|
|
Description:
|
|
Replacement of "setvehicleinit" command.
|
|
Parameter(s):
|
|
<--- netid object
|
|
<--- unit name
|
|
Returns:
|
|
Nothing
|
|
****************************************************************/
|
|
|
|
private ["_netID","_unit","_unitname"];
|
|
|
|
_netID = _this select 0;
|
|
_unit = objectFromNetID _netID;
|
|
_unitname = _this select 1;
|
|
|
|
_unit setVehicleVarName _unitname;
|
|
_unit call compile format ["%1=_This; PublicVariable ""%1""",_unitname];
|
|
|
|
if (UPSMON_Debug>0) then { diag_log format ["UPSMON 'UPSMON_fnc_setVehicleVarName': %1=_This; PublicVariable ""%1""",_unitname]; }; |