Jump to content
Sign in to follow this  
[aps]gnat

Copy vehicle class causes OFP crash !

Recommended Posts

I've got 2 vehicles being defined, one is just a copy of another with different Side and different 3d model.

In the past doing;

Quote[/b] ] class CIWS_Turret2: CIWS_Turret

{

displayName="CIWS Gun2";

model=\GNT_Frigates\CIWSturret2;

side=TEast;

crew="SoldierEPilot";

};

would normally get me the second "vehicle"

Now when I try to createvehicle "CIWS_Turret2" OFP crashes.

Yet if I FULLY define CIWS_Turret2 the same as CIWS_Turret (ie All lines) it works, no crashes.

Why is the short definition version causing a crash ?! crazy_o.gif

BTW, both would start;

Quote[/b] ]

class Air: AllVehicles {};

class Helicopter: Air {};

class CIWS: Helicopter {};

class CIWS_Turret: CIWS

{

......................

...................

Share this post


Link to post
Share on other sites

I don't know if that's the case here, but it's definitely gonna happen if you try to createvehicle something that's set as scope=private. Make sure to use scope=protected instead.

Share this post


Link to post
Share on other sites

Arh bugger .... tried your suggestions and then discovered an addon conflict ......... I'd used the definition name in another addon ! DUH ! icon_rolleyes.gif sorry. Thanks anyway.

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  

×