BIS fnc objectType: Difference between revisions
Jump to navigation
Jump to search
m (GVI 1.00 --> 1.08 http://dev.arma3.com/post/spotrep-00016) |
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
|game1= arma3 | |||
|version1= 1.08 | |||
| | |gr1= Object Manipulation | ||
| | |descr= Return object category and type. | ||
| | |s1= anObject call [[BIS_fnc_objectType]] | ||
|p1= anObject: [[String]] or [[Object]] | |||
|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 | |||
* Module | |||
{{!}} | |||
{{Columns|2| | |||
* Ammobox | |||
* Animal | |||
* Backpack | |||
* Camera | |||
* Church | |||
* Effect | |||
* Fire | |||
* Flag | |||
* Helipad | |||
* House | |||
* Marker | |||
* Mine | |||
* Parachute | |||
* Seagull | |||
* Sound | |||
* Target | |||
* Thing | |||
* Trigger | |||
* UnknownObject | |||
* VASI | |||
* Wreck | |||
}} | |||
{{!}}} | |||
| | |x1= <sqf>private _myType = player call BIS_fnc_objectType;</sqf> | ||
| | |x2= <sqf>private _myType = "B_MRAP_01_F" call BIS_fnc_objectType;</sqf> | ||
|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