Air plane will not respawn

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Psycho
Posts: 125
Joined: Thu Aug 25, 2011 3:31 am

Air plane will not respawn

Post by Psycho »

Hello all.

I have added a Typhoon airplane to BoB. And I got it working with Ai and in singleplayer.
The thing is, that the plane is there when the map starts. But it will not respawn after being destroyed.

objectspawntemplates:

Code: Select all

rem ----------------------------------------- 
rem ---  TyphoonSpawner  ---
rem ----------------------------------------- 
ObjectTemplate.create ObjectSpawner Typhoon
ObjectTemplate.setObjectTemplate 2 typhoon
ObjectTemplate.setObjectTemplate 1 typhoon
ObjectTemplate.MinSpawnDelay 10
ObjectTemplate.MaxSpawnDelay 15
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 30
ObjectTemplate.Distance 20
ObjectTemplate.Radius 20
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.MaxNrOfObjectSpawned 2
Objectspawns:

Code: Select all

rem ---  Typhoon  ---
Object.create Typhoon
Object.absolutePosition 1644.26/107.743/1686.8
Object.rotation 180.0/0.0/0.0
Object.setTeam 2
What have I missed? Very weird, since the plane works, just once....
I want to live in a created universe. Virtual reality, here I come.
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Air plane will not respawn

Post by freddy »

i didnt see it first but then i realised that the plane has the exact same name as the spawner, that means it propably create the typhoon plane directly and not the spawner. and that only happens once when the map starts. try and rename the spawner to typhoon_spawner or something like that.
User avatar
Psycho
Posts: 125
Joined: Thu Aug 25, 2011 3:31 am

Re: Air plane will not respawn

Post by Psycho »

freddy wrote:i didnt see it first but then i realised that the plane has the exact same name as the spawner, that means it propably create the typhoon plane directly and not the spawner. and that only happens once when the map starts. try and rename the spawner to typhoon_spawner or something like that.
Oh my:). thanks. will try that.
I want to live in a created universe. Virtual reality, here I come.
Post Reply