Deploy Unbuilt Armedbuilding?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Deploy Unbuilt Armedbuilding?

Post 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?
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Deploy Unbuilt Armedbuilding?

Post 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).
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Deploy Unbuilt Armedbuilding?

Post by Fiodis »

Place a built one, then set it's CurHealth to zero via lua.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Deploy Unbuilt Armedbuilding?

Post by trainmaster611 »

And that will make it unbuilt when it is deployed?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Deploy Unbuilt Armedbuilding?

Post by Fiodis »

I suppose so. If that doesn't work you could try KillObject() instead.
Post Reply