BIS fnc objectType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.08 | |1.08 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| Return object category and type. | | Return object category and type. | ||
| anObject call [[BIS_fnc_objectType]] | | anObject call [[BIS_fnc_objectType]] | ||
|p1= anObject: [[String]] or [[Object]] | |p1= anObject: [[String]] or [[Object]] | ||
| [[Array]] - in format [category, type]. One of: | | [[Array]] - in format [category, type]. One of: | ||
Line 61: | Line 61: | ||
** UnknownObject | ** UnknownObject | ||
** VASI | ** VASI | ||
** Wreck | ** Wreck | ||
|x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code> | |x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code> | ||
|x2= <code>_myType = "B_MRAP_01_F" [[call]] [[BIS_fnc_objectType]];</code> | |x2= <code>_myType = "B_MRAP_01_F" [[call]] [[BIS_fnc_objectType]];</code> | ||
| [[typeOf]], [[countType]], [[isKindOf]] | | [[typeOf]], [[countType]], [[isKindOf]] | ||
}} | }} |
Revision as of 00:41, 18 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