Page 1 of 1

Spawn in vehicle

Posted: Tue Dec 15, 2009 7:54 pm
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? :)

Re: Spawn in vehicle

Posted: Tue Dec 15, 2009 8:03 pm
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.

Re: Spawn in vehicle

Posted: Tue Dec 15, 2009 8:31 pm
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

Re: Spawn in vehicle

Posted: Tue Dec 15, 2009 8:32 pm
by reegad
DC also have one for the blackhawk in the wake island map or iwo jima.

Re: Spawn in vehicle

Posted: Tue Dec 15, 2009 9:10 pm
by fo0k
great will try!

these are the little critters in question ;)
(they are a wip.. )
Image

Re: Spawn in vehicle

Posted: Tue Dec 15, 2009 9:42 pm
by fo0k
working perfect. thanks senshi!