Function: Despawn(spawn, delay)
Description: Requests despawn of a non-Player spawn. The optional delay is in milliseconds; zero queues removal for the next eligible processing pass. Players are not despawned by this function.
The native request retains the original actor through its effects. Its scheduled deadline remembers that actor's original allocation, so a replacement under the same runtime ID does not inherit the removal. Retired actors cannot create fresh scheduled work. A later request for the same original actor replaces its previous deadline.
Parameters:
spawn(Spawn) - Actor to despawn.delay(uint32, optional) - Delay in milliseconds; defaults to zero.
Returns: None. Returning from this function does not mean that a delayed removal has completed.