Page 1 of 1

Vehiclespawn problem

Posted: Tue Apr 06, 2010 2:01 am
by Muad_Dib
For this map I'm making I need four identical moving spawns (boats) to spawn, but when I do that in Battlecraft... Ingame there will be only one spawnpoint, centered between the vehicles and you can't influence on which ship you will spawn...
How can I fix this?!

Re: Vehiclespawn problem

Posted: Tue Apr 06, 2010 4:25 am
by fo0k
the boats have the 'spawn id' included within the code for the vehicle. so because all 4 have the same code the spawn point just splits between them. you need to give each boat a unique spawn id so they each show up individually.

im on iphone at the moment so no hope of giving you instructions how to do this here but someone may be able to help with a serverside fix for this? (or a better fix than i have suggested..)

Re: Vehiclespawn problem

Posted: Tue Apr 06, 2010 5:36 pm
by Muad_Dib
So I need to change the code in the objects.con of the vehicle...

Code: Select all

ObjectTemplate.create SpawnPoint BlueBoatSailorSpawn
ObjectTemplate.setSpawnRotation 0/0/0
ObjectTemplate.setSpawnPositionOffset 0/0/0
ObjectTemplate.setSpawnPreventionDelay 0
ObjectTemplate.setSpawnId 0
ObjectTemplate.setGroup 120
ObjectTemplate.setSpawnAsParaTroper 0
Is the default code, so, since I need four boats, I need to make one with SpawnID 1, SpawnID 2 etc?
That sounds like a real pain, I would need to create four copies of the original boat, change names and info etc?

Re: Vehiclespawn problem

Posted: Wed Apr 07, 2010 2:43 am
by fo0k
you got it. :)

shouldnt be that hard to do really.. 10 min job.

Re: Vehiclespawn problem

Posted: Wed Apr 07, 2010 9:28 am
by Muad_Dib
Ok, made copies of the boats I needed, added different spawns on the boats... Somehow it didn't like it, so I defined groups for them too, and defined the groups in spawngroupmanagersettings.con, also changed the names of the xxinfo entries in all the .con's just to be sure... Works like a charm now! Thanks!

Re: Vehiclespawn problem

Posted: Wed Apr 07, 2010 2:07 pm
by fo0k
great ;) actually my mistake there.. groups was the important bit not spawn id's :)

Re: Vehiclespawn problem

Posted: Sat Apr 10, 2010 2:00 am
by anselmus
Can be possible in LCVP? A LCVP with spawnsoldier, like in the Enterprise.