Removing Templates via tmp.con?

Making or wanting help making your own asset? Check in here
Post Reply
Jabil_One
Posts: 135
Joined: 2017-03-11 18:01

Removing Templates via tmp.con?

Post by Jabil_One »

Hello all,

i have a question about this codeline:

Code: Select all

objectTemplate.removeTemplate 
For what is it?
Is it possible with this codeline to remove seats from vehicles when i edit the tweak of the vehicle in the tmp.con?? or i must test myself?!
AfterDune
Retired PR Developer
Posts: 17094
Joined: 2007-02-08 07:19

Re: Removing Templates via tmp.con?

Post by AfterDune »

I think you can only edit/remove templates that have been addTemplated in the .tweak file.

So in your case, if a seat (PlayerControlObject) has been created in the .con file, you can't remove it. But if it's been created in the .tweak (and addTemplated there), you can.
Image
Jabil_One
Posts: 135
Joined: 2017-03-11 18:01

Re: Removing Templates via tmp.con?

Post by Jabil_One »

Dankje well mijn vriend,

i will give it a try and look how it works.
I will remove some vehicle the ballast seats from coop gameplay mapbased without making a second SP variant of that vehicle. I want more boots on the ground.
Post Reply

Return to “PR:BF2 Community Modding”