I meant
an item can spawn an unit when it “explodes” via
spawnUnit, and a corpse can explode (Cyberdisk style)…
can you provide an example?
I tried to quickly test it, but could not even make a hovertank corpse explode like cyberdisk, so probably slowpoked somewhere, will try again with clearer head.
(Edit:) Got that one, the weird 0×0
corpseGeo thing and specab in 2 places.
Can’t get spawning to work with non-attack items, however.
There does not seem to be a way to change BattleType in scripts?
Hmm. If it’s a pre-set ability for non-player unit, maybe just place a grenade type item in the inventory, and set the fuse in
newTurnItem script? So it’s dropped on death, then goes off after the turn ends. If the unit is immune to stun, of course, or it can be dropped while it’s alive.