Description
Return object category and type.
Syntax
anObject call BIS_fnc_objectType
Parameters:
Returns: Array - in format [category, type]. One of:
| Soldier | Vehicle / VehicleAutonomous | Logic | Object |
|---|---|---|---|
| - AT - Civilian - Diver - Infantry - Medic - MG - Officer - Pilot - Sniper - SpecialForces - UAVPilot |
- Car - Helicopter - Motorcycle - Plane - Ship - StaticWeapon - Submarine - TrackedAPC - Tank - WheeledAPC |
- Logic - Module |
- Ammobox - Animal - Backpack - Camera - Church - Effect - Fire - Flag - Helipad - House - Marker - Mine - Parachute - Seagull - Sound - Target - Thing - Trigger - UnknownObject - VASI - Wreck |
Examples
Example 1
private _myType = player call BIS_fnc_objectType;
Example 2
private _myType = "B_MRAP_01_F" call BIS_fnc_objectType;