typeOf: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Commands|TYPEOF]] | [[Category:Scripting Commands|TYPEOF]] | ||
[[Category:Scripting Commands OFP 1. | [[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 20:04, 1 June 2006
typeOf vehicle
Operand types:
vehicle: Object
Type of returned value:
Description:
Returns the class type of a given object or vehicle.
Example:
_class = typeOf _mi24
Comments:
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.