Battlezone Universe

Battlezone Universe => Battlezone 2 => Topic started by: Rocket on August 31, 2009, 06:30:50 AM

Title: Spawning
Post by: Rocket on August 31, 2009, 06:30:50 AM
I'm having some trouble with spawns, i can't seem to make a spawned ship that IS NOT empty, the ships spawned are always empty.

i'm using a custom spawn ODF.

it is spawning a ship that is supposed to be basically a full drone ship.

I tryed adding "needPilot = 0" to the ship ODF, still showed up empty, but unpilotable  :?

please don't say that it has to be DLL helped..
Title: Re: Spawning
Post by: TheJamsh on August 31, 2009, 08:30:32 AM
yep it does. spawns will spawn ships without pilots usually, unless they belong to a team i believe. Try using addPilot = 1 in the vehicle ODF you are wanting to spawn.

Either way, YOU won't be able to control it (even if its on youre team), unless a .dll gives you command over it.
Title: Re: Spawning
Post by: bigbadbogie on August 31, 2009, 08:51:58 AM
Spawn an invisible building that lasts for 1 second with a tap which is a vehicle?
Title: Re: Spawning
Post by: TheJamsh on August 31, 2009, 09:38:26 AM
That works with the pilot thing, but you still won't be able to control it.
Title: Re: Spawning
Post by: mrtwosheds on August 31, 2009, 04:25:50 PM
what game mode are you attempting to spawn ships into?
Title: Re: Spawning
Post by: Rocket on September 01, 2009, 02:11:03 AM
*TJ))) ok, i'll try addpilot=1. I'm not looking to be able to control it, just to have a ship there.

*BBB))) what you said would work... if taps weren't destroyed when its base building was destroyed... (but having the building last longer, and making the building invisible/unshootable might work)

*MTS))) it will be in MP, and IA.

thanks! :-)
Title: Re: Spawning
Post by: mrtwosheds on September 01, 2009, 11:08:50 AM
In MP ships can be spawned at the start of the game, using mpic_ or mpih_  At any other time dll will need to do it.
Title: Re: Spawning
Post by: Rocket on September 02, 2009, 10:20:36 PM
actually, it's not spawned at the beginning of the game, atleast i don't think so...

anyway, addPilot = 1 didn't work... the ship was still empty.

I did BBB's idea,(made the building practically non existant and made its life longer.) and it works nicely now. :-)
Title: Re: Spawning
Post by: mrtwosheds on September 03, 2009, 05:36:57 PM
The building dies and leaves teamed piloted vehicle?
Can it then be used by an aip?
Title: Re: Spawning
Post by: bigbadbogie on September 04, 2009, 05:00:11 AM
Another way could be if you spawned the ship and a pilot at the same time in the same place.

Quote from: mrtwosheds on September 03, 2009, 05:36:57 PM
Can it then be used by an aip?

Idle dispatcher should pick it up.
Title: Re: Spawning
Post by: General BlackDragon on September 04, 2009, 07:14:27 PM
Quote from: bigbadbogie on September 04, 2009, 05:00:11 AM
Another way could be if you spawned the ship and a pilot at the same time in the same place.

I was going to say that. Yeah afaik the best way to "spawn" a ship for ai use is either A: via DLL, or B: on the map editor by spawning a pilot of appropriate team, and the ship spawn on top of eachother. The ship will appear to spawn and have a pilot. Although you might end up with a spawned pilot standing if the ship stays alive longer then 60 seconds.