Greetings all - I have a very basic and elementary question - I've used the search function, but couldn't find the answer for what I'm looking for.
Basically, when a specific unit dies, I want to spawn a vehicle at a specific location on the map. I've been trying to get this to work for several hours now - I've tried attaching the unit to a trigger and having the vehicle I want spawn at a marker -- in theory the trigger would go off when the unit is killed as he is connected to the trigger under the "not present" condition.
In the trigger I can spawn the vehicle with this line of code... but...
_ship = "PBX" createVehicle getMarkerPos "marker"
...the ship will spawn regardless of the health of the unit, and I'll get an error message (local variable in global space) but it will let me continue. I know this has to be a very simple, unsophisticated result I want, and there must be a very easy and simple solution that I'm missing, but so far I'm stuck.
If you can help, I appreciate it
Much thanks!
-Bolgard