BIS fnc objectType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.08


|1.08|Game version=
|gr1= Object Manipulation


|gr1 = Object Manipulation |GROUP1=
|descr= Return object category and type.


| Return object category and type. |DESCRIPTION=
|s1= anObject call [[BIS_fnc_objectType]]


| anObject call [[BIS_fnc_objectType]] |SYNTAX=
|p1= anObject: [[String]] or [[Object]]


|p1= anObject: [[String]] or [[Object]] |PARAMETER1=
|r1= [[Array]] - in format [category, type]. One of:
 
{{{!}} class="wikitable"
| [[Array]] - in format [category, type]. One of:
! Soldier
* Soldier
! Vehicle / VehicleAutonomous
** AT
! Logic
** Civilian
! Object
** Diver
{{!}}- style="vertical-align: top"
** Infantry
{{!}}
** Medic
* AT
** MG
* Civilian
** Officer
* Diver
** Pilot
* Infantry
** Sniper
* Medic
** SpecialForces
* MG
** UAVPilot
* Officer
* Vehicle / VehicleAutonomous
* Pilot
** Car
* Sniper
** Helicopter
* SpecialForces
** Motorcycle
* UAVPilot
** Plane
{{!}}
** Ship
* Car
** StaticWeapon
* Helicopter
** Submarine
* Motorcycle
** TrackedAPC
* Plane
** Tank
* Ship
** WheeledAPC
* 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 |RETURNVALUE=
* Wreck
}}
{{!}}}


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


|x2= <code>_myType = "B_MRAP_01_F" [[call]] [[BIS_fnc_objectType]];</code> |EXAMPLE2=
|x2= <sqf>private _myType = "B_MRAP_01_F" call BIS_fnc_objectType;</sqf>
 
| [[typeOf]], [[countType]], [[isKindOf]] |SEEALSO=


|seealso= [[typeOf]] [[countType]] [[isKindOf]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:objectType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:objectType}}]]

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