typeOf: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (moved notes) |
||
Line 28: | Line 28: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
Try using this on an object pre-placed in the mission editor (such as a house): [[hint]] [[format]]["%1", typeof [[object]] 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. | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands|TYPEOF]] | [[Category:Scripting Commands|TYPEOF]] | ||
[[Category:Scripting Commands OFP 1.96|TYPEOF]] | [[Category:Scripting Commands OFP 1.96|TYPEOF]] | ||
[[Category:Scripting Commands OFP 1.46|TYPEOF]] | [[Category:Scripting Commands OFP 1.46|TYPEOF]] | ||
[[Category:Scripting Commands ArmA|TYPEOF]] | [[Category:Scripting Commands ArmA|TYPEOF]] |
Revision as of 15:18, 2 August 2006
Description
- Description:
- Returns the class type of a given object or vehicle.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_class = typeOf _mi24
Additional Information
- See also:
- See also needed
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
Notes
-
Try using this on an object pre-placed in the mission editor (such as a house): hint format["%1", typeof object 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.