BIS fnc objectType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \|p([0-9]{1,2})=([^ ]+) + \| *(\[\[Arr.+) * " to " |p$1=$2 |r1=$3 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.08 | |||
|1.08 | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Return object category and type. | |descr= Return object category and type. | ||
|s1= anObject call [[BIS_fnc_objectType]] | |s1= anObject call [[BIS_fnc_objectType]] | ||
Line 13: | Line 12: | ||
|p1= anObject: [[String]] or [[Object]] | |p1= anObject: [[String]] or [[Object]] | ||
|r1=[[Array]] - in format [category, type]. One of: | |r1= [[Array]] - in format [category, type]. One of: | ||
{{{!}} class="wikitable" | |||
! Soldier | |||
! Vehicle / VehicleAutonomous | |||
! Logic | |||
! Object | |||
{{!}}- style="vertical-align: top" | |||
{{!}} | |||
* AT | |||
* Civilian | |||
* Diver | |||
* Infantry | |||
* Medic | |||
* MG | |||
* Officer | |||
* Pilot | |||
* Sniper | |||
* SpecialForces | |||
* UAVPilot | |||
{{!}} | |||
* Car | |||
* Helicopter | |||
* Motorcycle | |||
* Plane | |||
* Ship | |||
* StaticWeapon | |||
* Submarine | |||
* TrackedAPC | |||
* Tank | |||
* WheeledAPC | |||
{{!}} | |||
* Logic | * Logic | ||
* | * Module | ||
{{!}} | |||
<div style="columns: 2"> | |||
* Ammobox | |||
* Animal | |||
* Backpack | |||
* Camera | |||
* Church | |||
* Effect | |||
* Fire | |||
* Flag | |||
* Helipad | |||
* House | |||
* Marker | |||
* Mine | |||
* Parachute | |||
* Seagull | |||
* Sound | |||
* Target | |||
* Thing | |||
* Trigger | |||
* UnknownObject | |||
* VASI | |||
* Wreck | |||
</div> | |||
{{!}}} | |||
|x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code> | |x1= <code>_myType = [[player]] [[call]] [[BIS_fnc_objectType]];</code> |
Revision as of 04:56, 13 June 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 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:
_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