As the title says, is there any way to get the position that a unit died in? I want to have a chance of creating resources at the position an enemy unit died in. The thing here is, I can't use the "Position of Triggering Unit" function here, as enemies in my map respawn after a certain time, and have their custom values set to the position they started in. (This is done to make sure they respawn at the same position they were created in) This means that any units spawned in "Position of Triggering Unit" (the dying unit) function will spawn the resources at the location that the unit started in. Does that make sense?
Anyway, is there another way of doing this? Preferably one that doesn't take up several lines of triggering?
I don't think what you said made any sense... Maybe you're having problems because you're using position of triggering unit after a wait action? In that case just store the position in a local variable at the start of the trigger, then recall it later.
Alternatively (Data Solution) you could use a behavior with a death effect of spawning a unit (the resource). To make it a percentage chance, just give it a value of less than 1.
I'm assuming you want resource pallets or something similar to spawn.