Spawn in vehicle

Ask questions, discuss ideas, get answers
Post Reply
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Spawn in vehicle

Post by fo0k »

So I want to have a map where there are no 'normal' spawn points as such..

you can only spawn when a vehicle is free and then when you select that spawn point you spawn into the driving seat (only one seat in vehicle anyway)

Ive never done/tried this before.. is it possible/difficult?

how? :)
Poow
Posts: 271
Joined: Sun Nov 01, 2009 8:00 pm
Location: Germany
Contact:

Re: Spawn in vehicle

Post by Poow »

FH mod, omaha. Allied amphibious tank. (Don't know the exactly name)
(Yes it's possible but don't ask me how^^)
Some time ago I looked in the code and it was quite simple.
You’re entering a world of pain!
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Spawn in vehicle

Post by Senshi »

Create a spawn point and attach it to the object complex.

Give the spawnpoint the following attributes:

Code: Select all

ObjectTemplate.create SpawnPoint Entry_SoldierSpawn <----obviously irrelevant, name it as you wish
ObjectTemplate.setSpawnRotation 0/0/0 
ObjectTemplate.setSpawnPositionOffset 0/0/0
ObjectTemplate.setSpawnPreventionDelay 0
ObjectTemplate.setSpawnId 0
ObjectTemplate.setGroup 75 <---use a free group, you obviously have to set up that group too (like in spawnpointmanager.con), be careful not to use a group number that is used by other vehicles! Sadly this also means if there are multiple objects of one type, they share the spawner...so you get one spawn point on the map for 3 vehicles, causing you to be put into a random one. Sometimes desired, sometimes not. If not, you have to create a new PCO...
ObjectTemplate.setEnterOnSpawn 1 <----- that's the line you are looking for
ObjectTemplate.setAIEnterOnSpawn 1
ObjectTemplate.setSpawnAsParaTroper 0
reegad
Posts: 82
Joined: Mon Nov 09, 2009 3:43 pm

Re: Spawn in vehicle

Post by reegad »

DC also have one for the blackhawk in the wake island map or iwo jima.
Image
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Spawn in vehicle

Post by fo0k »

great will try!

these are the little critters in question ;)
(they are a wip.. )
Image
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Spawn in vehicle

Post by fo0k »

working perfect. thanks senshi!
Post Reply