Page 1 of 1
Deploy Unbuilt Armedbuilding?
Posted: Fri Nov 13, 2009 11:45 pm
by trainmaster611
Well I am trying to make a deployable turret that is unbuilt when it is deployed and it needs to be repaired to be built. I've tried adding an unbuilt geometry to the ODF of the turret that is being deployed and I've also tried to make the unbuilt odf the object that is being deployed by the weapon ODF. In both cases, a tripod (minus the gun) appears but there's no collision and it falls through the ground. For safe measure I also remved the -nocollision thing from the respective msh.option files.
Any suggestions?
Re: Deploy Unbuilt Armedbuilding?
Posted: Sat Nov 14, 2009 1:11 am
by Sky_216
I'm guessing the unbuilt turret has no collision because whenever one appears in the stock game the turret is already placed and its a static object (the destroyed version).
Re: Deploy Unbuilt Armedbuilding?
Posted: Sat Nov 14, 2009 1:04 pm
by Fiodis
Place a built one, then set it's CurHealth to zero via lua.
Re: Deploy Unbuilt Armedbuilding?
Posted: Sun Nov 15, 2009 1:01 am
by trainmaster611
And that will make it unbuilt when it is deployed?
Re: Deploy Unbuilt Armedbuilding?
Posted: Sun Nov 15, 2009 1:51 pm
by Fiodis
I suppose so. If that doesn't work you could try KillObject() instead.