CBA_fnc_isTurnedOut

Description

Checks whether a unit is turned out in a vehicle or not.

Parameters

_unitUnit to check [Object]

Returns

”true” for turned out or “false” for not turned out [Boolean] Cargo in exposed vehicles are “turned out” if they lack a cargoSoundAttenuation matching index.  Do NOT assume that because this function returns false that the unit is generally exposed.

For example, ATVs will return false, even though they are “turned out”.

Examples

if ( [player] call CBA_fnc_isTurnedOut ) then
{
    player sideChat "I am turned out!";
};

Author

Nou, courtesy of ACRE project.

Close