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..
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.
Spawn an invisible building that lasts for 1 second with a tap which is a vehicle?
That works with the pilot thing, but you still won't be able to control it.
what game mode are you attempting to spawn ships into?
*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! :-)
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.
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. :-)
The building dies and leaves teamed piloted vehicle?
Can it then be used by an aip?
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.
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.