Jump to content
Sign in to follow this  
der bastler

Named properties

Recommended Posts

Reading zwadars tutorial, I've discovered this screenshot of the named properties window showing some interesting values:

nez_zacnem_np.jpg

Ok, the config.cpp describes the behaviour of my add-on. But, is it possible to define the model's values inside itself? And if yes, in which lod?

It's because of WrpEdit, where one can include objects using their p3d files. I noticed some time ago that a fuel station behaves like a fuel station, although only it's p3d is included. My conclusion at that time: Yeah, OFP knows it's fuel station. But now...

Share this post


Link to post
Share on other sites

I suspect you can't simply reproduce a whole config file there. Canocclude, for example, is p3d specific, as it were. I think it's probably a way of defining certain (limited) characteristics.

Prospero

Share this post


Link to post
Share on other sites

Yes, there are some properties which can be in the model, but they all seem to be totally different than which are defined in the config... The fuel stations for example are in the config, like this:

class FuelStation: Strategic

{

icon="Fuel_object";

scope=2;

cost=0;

armor=50;

model="fuelstation";

displayName="$STR_DN_FUEL_STATION";

nameSound="fuelstation";

accuracy=0.500000;

transportFuel=50000;

destrType="DestructEngine";

};

When loading a p3d file from a wrp, the engine seems to go through the config, seeking for a vehicle/nonaivehicle that would use that model and get the properties from there.

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  

×