CBA_fnc_isPerson

Description

Checks if an object is a personsoldier or civilian.

Parameters

_unitA unit or classname <OBJECT, STRING>

Returns

True if object is a person, otherwise false <BOOLEAN>

Examples

player call CBA_fnc_isPerson;
-> true

"CAManBase" call CBA_fnc_isPerson;
-> true

(vehicle player) call CBA_fnc_isPerson;
-> false

_projectile call CBA_fnc_isPerson;
-> false

Author

commy2

Close