BIS fnc objectType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.08
|1.08


|gr1= Object Manipulation
|gr1= Object Manipulation


| Return object category and type.
|descr= Return object category and type.


| anObject call [[BIS_fnc_objectType]]
|s1= anObject call [[BIS_fnc_objectType]]


|p1= anObject: [[String]] or [[Object]]
|p1= anObject: [[String]] or [[Object]]


| [[Array]] - in format [category, type]. One of:
|r1= [[Array]] - in format [category, type]. One of:
* Soldier
{{{!}} class="wikitable"
** AT
! Soldier
** Civilian
! Vehicle / VehicleAutonomous
** Diver
! Logic
** Infantry
! Object
** Medic
{{!}}- style="vertical-align: top"
** MG
{{!}}
** Officer
* AT
** Pilot
* Civilian
** Sniper
* Diver
** SpecialForces
* Infantry
** UAVPilot
* Medic
* Vehicle / VehicleAutonomous
* MG
** Car
* Officer
** Helicopter
* Pilot
** Motorcycle
* Sniper
** Plane
* SpecialForces
** Ship
* UAVPilot
** StaticWeapon
{{!}}
** Submarine
* Car
** TrackedAPC
* Helicopter
** Tank
* Motorcycle
** WheeledAPC
* Plane
* Ship
* StaticWeapon
* Submarine
* TrackedAPC
* Tank
* WheeledAPC
{{!}}
* Logic
* Logic
** Logic
* Module
** Module
{{!}}
* Object
{{Columns|2|
** Ammobox
* Ammobox
** Animal
* Animal
** Backpack
* Backpack
** Camera
* Camera
** Church
* Church
** Effect
* Effect
** Fire
* Fire
** Flag
* Flag
** Helipad
* Helipad
** House
* House
** Marker
* Marker
** Mine
* Mine
** Parachute
* Parachute
** Seagull
* Seagull
** Sound
* Sound
** Target
* Target
** Thing
* Thing
** Trigger
* Trigger
** UnknownObject
* UnknownObject
** VASI
* VASI
** Wreck
* Wreck
}}
{{!}}}


|x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code>
|x1= <sqf>private _myType = player call BIS_fnc_objectType;</sqf>


|x2= <code>_myType = "B_MRAP_01_F" [[call]] [[BIS_fnc_objectType]];</code>
|x2= <sqf>private _myType = "B_MRAP_01_F" call BIS_fnc_objectType;</sqf>


|seealso= [[typeOf]], [[countType]], [[isKindOf]]
|seealso= [[typeOf]] [[countType]] [[isKindOf]]
}}
}}

Latest revision as of 23:44, 12 July 2022

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