typeOf

From Bohemia Interactive Community
Revision as of 17:55, 15 April 2006 by Hoz (talk | contribs)
Jump to navigation Jump to search

typeOf vehicle

Operand types:

vehicle: Object

Type of returned value:

String

Description:

Returns the class type of a given object or vehicle.

Example:

_class = typeOf _mi24


Comments

Comments by General Barron

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. You just placed a new house!