Carriers

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Tuesday
Posts: 36
Joined: Fri Jul 09, 2010 3:39 pm
Location: UK
Contact:

Carriers

Post by Tuesday »

Is there anyway to edit the planes that spawn on the carriers.

All I would like to do is change the SBD to a SBD-t and the Aichival to an Aichival-t.

:roll:
motoko
Posts: 217
Joined: Sun Nov 21, 2010 8:43 pm
Location: Dante's 6th Pit of Hell

Re: Carriers

Post by motoko »

Try

Code: Select all

ObjectTemplate.Active Enterprise
ObjectTemplate.addTemplate [i]spawnername[/i]
ObjectTemplate.holdObject 1
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

easiest way
Code:
ObjectTemplate.Active name_of_carrierspawner
ObjectTemplate.setObjectTemplate 3 the_new_vehicle
ObjectTemplate.setTeam 3


but sometimes the height of the spawned object can differ to much, especially if it have the line ObjectTemplate.holdObject 1 in that case try put that line in to but with a zero instead of 1.

if it still doesnt work eg spawner is to low so the vehicle ends up under the deck you can try add this line ObjectTemplate.setSpawnPositionOffset 0/0.4/0

ex

Code:
ObjectTemplate.Active name_of_carrierspawner
ObjectTemplate.setObjectTemplate 3 the_new_vehicle
ObjectTemplate.setTeam 3
ObjectTemplate.holdObject 0
ObjectTemplate.setSpawnPositionOffset 0/0.4/0


if it still doesnt work you have to removetemplate the spawner and then add it again at the correct position.
http://battlefieldmodding.com/ssm/phpBB ... 2b2029b577
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Carriers

Post by Swaffy »

Make sure you tell us if you are doing the mod server-side or client-side. I like to do my modding client-side, as I'm more of a Single Player and Off-line Co-Op player.

For the client-side modding for this situation, you can simply edit what airplane is used on the spawn template.
Vehicles\Sea\Enterprise\Objects.con

Scroll down until you find the spawn template. From there, you can change it to a vehicle, weapon kit, or static object.

- - - - - - - - - - - - - - - - - - - - - - -

I'm curious:

If I attach a Willy spawner to a Willy, will the game infinitely spawn Willy cars until the game ends or crashes?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
motoko
Posts: 217
Joined: Sun Nov 21, 2010 8:43 pm
Location: Dante's 6th Pit of Hell

Re: Carriers

Post by motoko »

Swaffy wrote:I'm curious:

If I attach a Willy spawner to a Willy, will the game infinitely spawn Willy cars until the game ends or crashes?
Wouldn't it just create a tower of Willy's? Or most likely crash.... I must see this!
jdc527
Posts: 52
Joined: Mon Aug 31, 2020 8:39 pm
Location: Southwest, USA
Contact:

Re: Carriers

Post by jdc527 »

I would like to know if it’s possible to edit the number of say SBD’s it spawns. Like one right after the other for massive air battles on maps like Midway or a custom map I’m making. Give it a spawn delay of under 10sec so you can just pump out fighters and dive bombers.
Diamondback
Posts: 603
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Carriers

Post by Diamondback »

jdc527 wrote: Mon Jun 24, 2024 5:46 am I would like to know if it’s possible to edit the number of say SBD’s it spawns. Like one right after the other for massive air battles on maps like Midway or a custom map I’m making. Give it a spawn delay of under 10sec so you can just pump out fighters and dive bombers.
Try this: mdt/scripting/ObjectTemplate/Properties ... awned.html
See my Strasbourg map project here.
Post Reply