[aps]gnat 28 Posted November 15, 2005 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 ?! 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
ag_smith 0 Posted November 15, 2005 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
vektorboson 8 Posted November 16, 2005 Probably wrong model path. Share this post Link to post Share on other sites
Footmunch 0 Posted November 16, 2005 Probably wrong model path. Seconded. Is the model in CIWS_Turret2.p3d, perhaps? Share this post Link to post Share on other sites
[aps]gnat 28 Posted November 16, 2005 Arh bugger .... tried your suggestions and then discovered an addon conflict ......... I'd used the definition name in another addon ! DUH ! sorry. Thanks anyway. Share this post Link to post Share on other sites