There is a hack to get it (ACE uses a very similar), but its quite bad on performance, very hacky and may cause problems when not done on unit init (and the id can change with join command)
Description
Description
Details
Details
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Scripting
Additional Information
params [["_unit", objNull, [objNull]]]; private _vehicleVarName = vehicleVarName _unit; _unit setVehicleVarName ""; private _unitString = str _unit; _unit setVehicleVarName _vehicleVarName; private _return = _unitString select [(_unitString find ":") + 1]; parseNumber _return;