BIS fnc objectType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 71: | Line 71: | ||
{{!}}} | {{!}}} | ||
|x1= < | |x1= <sqf>private _myType = player call BIS_fnc_objectType;</sqf> | ||
|x2= < | |x2= <sqf>private _myType = "B_MRAP_01_F" call BIS_fnc_objectType;</sqf> | ||
|seealso= [[typeOf]] [[countType]] | |seealso= [[typeOf]] [[countType]] [[isKindOf]] | ||
}} | }} |
Latest revision as of 23:44, 12 July 2022
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:
- Example 2:
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