PSYKOnz Posted August 5, 2021 Posted August 5, 2021 I need to find the names of a few objects (mostly hangars) how do I go about finding out what their classnames are? Ie what the game/editor sees them as? The building it’s self not just the parking spot Tomcat, Tomcat über allen
cfrag Posted August 5, 2021 Posted August 5, 2021 For scenery objects, once you have access to it, you can invoke Object:getTypeName() and are returned a string. This returns their type name. I think all their class names are 'SceneryObject'
Grimes Posted August 5, 2021 Posted August 5, 2021 Right click on an object in the mission editor and select "assign as". This creates a trigger zone over the object with the typeName as one of the values in the properties. It is important to note that the id isn't fixed and can change from patch to patch. It depends on if the map is updated, which means the value is more stable for something like Nevada but you never really know when it might update. So if you were making something that depends on a specific object being destroyed you pretty much have to rely on using the coordinates and the typeName to identify it. 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts