Function: KillSpawn(dead, killer, send_packet)
Description:
Kills an alive, zoned actor that is not protected by GM invisibility. The killer is optional. A pending corpse registration for that same original actor prevents duplicate death processing; an obsolete registration under a reused runtime ID does not block a replacement actor. Subsequent corpse removal remembers the original allocation.
Parameters:
dead(Spawn) - Spawn object representingdead.killer(Spawn, optional) - Actor responsible for the kill.send_packet(uint8, optional) - Pass 1 to send the death packet; defaults to 0.
Returns: None.