Vehiclespawn problem

Ask questions, discuss ideas, get answers
Post Reply
Muad_Dib
Posts: 5
Joined: Tue Apr 06, 2010 1:54 am

Vehiclespawn problem

Post 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?!
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Vehiclespawn problem

Post 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..)
Muad_Dib
Posts: 5
Joined: Tue Apr 06, 2010 1:54 am

Re: Vehiclespawn problem

Post 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?
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Vehiclespawn problem

Post by fo0k »

you got it. :)

shouldnt be that hard to do really.. 10 min job.
Muad_Dib
Posts: 5
Joined: Tue Apr 06, 2010 1:54 am

Re: Vehiclespawn problem

Post 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!
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Vehiclespawn problem

Post by fo0k »

great ;) actually my mistake there.. groups was the important bit not spawn id's :)
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re: Vehiclespawn problem

Post by anselmus »

Can be possible in LCVP? A LCVP with spawnsoldier, like in the Enterprise.
Post Reply