typeOf: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">") |
||
Line 38: | Line 38: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | |||
<dd class="notedate">Posted on August 4, 2006 - 12:03</dd> | <dd class="notedate">Posted on August 4, 2006 - 12:03</dd> | ||
<dt class="note">[[User:Hardrock|hardrock]]</dt> | <dt class="note">[[User:Hardrock|hardrock]]</dt> |
Revision as of 21:43, 5 June 2021
Description
- Description:
- Returns the config class name of given object or
""
if object does not have a config class. - Groups:
- Object Manipulation
Syntax
Examples
- Example 1:
if (typeOf vehicle player == "B_Heli_Light_01_armed_F") then { hint "Player is in a AH-9 Pawnee"; };
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
- Posted on August 4, 2006 - 12:03
- hardrock
- 1.90 Try using this on an object pre-placed in the mission editor such as a house:
hint format ["%1", typeOf object]; // Shows the class name (XXX)
Now place an object in the editor, save the map, and open up the Mission.sqm. Find the line: vehicle = "XXX", and replace XXX with the name of the object that you found above. Save it, and load the map. This method is no longer available since Armed Assault.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.90
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation