Tankbuster
When using this to get the side of vehicle drivers, be aware that when the boolean parameter is true, empty vehicles will return their driver as east. The same vehicle, when the boolean parameter is false, will return "UNKNOWN"
Results appear below as you type; use the arrow keys to move through them.
Returns object side as defined in config (i.e. not affected by dynamic changing like rating)
[target, boolean] call BIS_fnc_objectSide
Parameters:
target: Object - the object to be testedboolean: Boolean (optional) - false (default) to return actual object side, true to return the default config valueReturns: Side
target call BIS_fnc_objectSide
Parameters:
target: Object - the object to be tested. This syntax is equal to calling the method with false as a second parameter.Returns: Side
private _realVehicleSide = [vehicle player, true] call BIS_fnc_objectSide;
private _unknownSide = [objNull, false] call BIS_fnc_objectSide; // will return sideUnknown
private _eastSide = [objNull, true] call BIS_fnc_objectSide; // will return east
// same results
_result1 = myVehicle call BIS_fnc_objectSide;
_result2 = [myVehicle] call BIS_fnc_objectSide;
_result3 = [myVehicle, false] call BIS_fnc_objectSide;
side · CfgVehicles Config Reference · Side · playerSide · west · east · resistance · civilian · sideLogic · sideFriendly · sideEnemy · sideUnknown · sideEmpty · sideAmbientLife · Side Relations · BIS_fnc_sideID
When using this to get the side of vehicle drivers, be aware that when the boolean parameter is true, empty vehicles will return their driver as east. The same vehicle, when the boolean parameter is false, will return "UNKNOWN"