Jump to content
Sign in to follow this  
havocsquad

Needing List of Object Types in OFP

Recommended Posts

I was asking if anyone had a listing of all the BIS object types that would show up from the use of the command "typeof".  I'm trying to refine some target analyzing scripts I have and having difficulty with it.

Much appreciated,

Havoc.

Share this post


Link to post
Share on other sites

Download BIS's commented config files off of the breathe site (sorry, I don't have a link). Open up the "cfgVehicles.hpp" file, and it will have the config of all default BIS objects. It doesn't have the names of Res objects (found in the config of o.pbo), nor does it have the names of BIS addons (like the m2a2). The classnames are what show up via the 'typeof' command. Here is an example:

class myclass: parentclass

{config goes in here;};

In that example, the objects classname would be "myclass". The class inherits from "parentclass", which means it gets all of the properties of "parentclass", unless they are edited in "myclass"'s config. Sort of a crappy explaination, so I can explain further if you need it.

The reason I bring up inheritance, is that it is used in the "counttype" command. So if you write:

[object1, object2] counttype "land"

the command will return how many of those objects INHERIT from the class "land". So even if those objects aren't of the class "land" (meaning, they don't return "land" via the "typeof" command), they will still be counted by this command if they inherit from that class at some point.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×