BIS_fnc_objectType

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Return object category and type.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
anObject call BIS_fnc_objectType
Parameters:
anObject: String or Object
Return Value:
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;

Additional Information

See also:
typeOf countType isKindOf

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note