BIS fnc objectType: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Objects(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Object Manipulation |GROUP1= | |gr1 = Object Manipulation |GROUP1= | ||
| Return object category and type. |DESCRIPTION= | | Return object category and type. |DESCRIPTION= | ||
| anObject call [[BIS_fnc_objectType]] |SYNTAX= | | anObject call [[BIS_fnc_objectType]] |SYNTAX= | ||
Line 65: | Line 62: | ||
** VASI | ** VASI | ||
** Wreck |RETURNVALUE= | ** Wreck |RETURNVALUE= | ||
|x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code> |EXAMPLE1= | |x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code> |EXAMPLE1= | ||
|x2= <code>_myType = "B_MRAP_01_F" [[call]] [[BIS_fnc_objectType]];</code> |EXAMPLE2= | |x2= <code>_myType = "B_MRAP_01_F" [[call]] [[BIS_fnc_objectType]];</code> |EXAMPLE2= | ||
| [[typeOf]], [[countType]], [[isKindOf]] |SEEALSO= | | [[typeOf]], [[countType]], [[isKindOf]] |SEEALSO= |
Revision as of 00:43, 17 January 2021
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
- 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
- Soldier
Examples
- Example 1:
_myType = player call BIS_fnc_objectType;
- Example 2:
_myType = "B_MRAP_01_F" call BIS_fnc_objectType;
Additional Information
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