Page 1 of 1

Air plane will not respawn

Posted: Sat Apr 07, 2012 4:27 pm
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....

Re: Air plane will not respawn

Posted: Sun Apr 08, 2012 7:02 am
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.

Re: Air plane will not respawn

Posted: Sun Apr 08, 2012 11:23 am
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.