BIS fnc objectType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI 1.00 --> 1.08 http://dev.arma3.com/post/spotrep-00016)
(Page filling)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Return object category and type. |= Description
 
____________________________________________________________________________________________
Description:
Return object category and type. Recognized types are:
 
Soldier
AT
Civilian
Diver
Infantry
Medic
MG
Officer
Pilot
Sniper
SpecialForces
UAVPilot
Vehicle / VehicleAutonomous
Car
Helicopter
Motorcycle
Plane
Ship
StaticWeapon
Submarine
TrackedAPC
Tank
WheeledAPC
Logic
Logic
Module
Object
Ammobox
Animal
Backpack
Camera
Church
Effect
Fire
Flag
Helipad
House
Marker
Mine
Parachute
Seagull
Sound
Target
Thing
Trigger
UnknownObject
VASI
Wreck


Parameter(s):
| anObject call [[BIS_fnc_objectType]] |= Syntax
0: STRING - item class


Returns:
|p1= anObject: [[String]] or [[Object]] |= Parameter 1
ARRAY in format [category,type]
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Array]] - in format [category, type]. One of:
* Soldier
** AT
** Civilian
** Diver
** Infantry
** Medic
** MG
** Officer
** Pilot
** Sniper
** SpecialForces
** UAVPilot
* Vehicle / VehicleAutonomous
** Car
** Helicopter
** Motorcycle
** Plane
** Ship
** StaticWeapon
** Submarine
** TrackedAPC
** Tank
** WheeledAPC
* Logic
** Logic
** Module
* Object
** Ammobox
** Animal
** Backpack
** Camera
** Church
** Effect
** Fire
** Flag
** Helipad
** House
** Marker
** Mine
** Parachute
** Seagull
** Sound
** Target
** Thing
** Trigger
** UnknownObject
** VASI
** Wreck |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_objectType]]; --> |= Syntax
|x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code> |= Example 1
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________


|x1= <code></code> |=  
|x2= <code>_myType = "B_MRAP_01_F" [[call]] [[BIS_fnc_objectType]];</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[typeOf]], [[countType]], [[isKindOf]] |= See also


}}
}}

Revision as of 21:01, 30 April 2018


Hover & click on the images for description

Description

Description:
Return object category and type.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
anObject call BIS_fnc_objectType
Parameters:
anObject: String or Object
Return Value:
Array - in format [category, type]. One of:
  • Soldier
    • AT
    • Civilian
    • Diver
    • Infantry
    • Medic
    • MG
    • Officer
    • Pilot
    • Sniper
    • SpecialForces
    • UAVPilot
  • Vehicle / VehicleAutonomous
    • Car
    • Helicopter
    • Motorcycle
    • Plane
    • Ship
    • StaticWeapon
    • Submarine
    • TrackedAPC
    • Tank
    • WheeledAPC
  • Logic
    • Logic
    • Module
  • Object
    • Ammobox
    • Animal
    • Backpack
    • Camera
    • Church
    • Effect
    • Fire
    • Flag
    • Helipad
    • House
    • Marker
    • Mine
    • Parachute
    • Seagull
    • Sound
    • Target
    • Thing
    • Trigger
    • UnknownObject
    • VASI
    • Wreck

Examples

Example 1:
_myType = player call BIS_fnc_objectType;
Example 2:
_myType = "B_MRAP_01_F" call BIS_fnc_objectType;

Additional Information

See also:
typeOfcountTypeisKindOf

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

Notes

Bottom Section