Function: KillSpawnByDistance(spawn, max_distance, include_players, send_packet)
Description:
Kill's spawns in the distance radius around the Spawn (Entity based, NPC, Player, Bot). The include_players is false by default, as-is send_packet.
Each victim's later corpse-removal deadline remembers its original allocation. Reusing a runtime ID does not transfer that deferred removal to a replacement actor. This timer contract applies to death processing after radius selection.
Radius selection retains the original origin and each selected victim allocation through native callbacks. Candidate identity includes the spatial publication epoch, so ID reuse cannot substitute a new actor during selection. Actors already marked deleted are skipped when the per-victim action begins. Radius results use the existing distance ordering and filters.
Parameters:
spawn(Spawn) - Spawn object representingspawn.max_distance(float) - Float valuemax_distance.include_players(uint8) - Integer valueinclude_players.send_packet(uint8) - Integer valuesend_packet.
Returns: None.