Function: SpawnSetByDistance(spawn, max_distance, variable, value)
Description: Applies a supported spawn-set field to non-Player actors within the supplied radius. Requires a zoned origin, positive distance, and nonempty field/value strings. Uses the ordinary command field lookup; an unknown field produces no changes.
The operation retains its original origin and selected actor allocations. Radius cells remember original actor references and publication epochs; callbacks cannot turn a captured candidate ID into a replacement actor. Actor work runs after index locks are released. This is a selected snapshot, not an instruction to rediscover actors after each callback.
Parameters:
spawn(Spawn) - Origin whose zone and position define the search.max_distance(float) - Positive radius using the engine's ordinary collision-aware distance.variable(string) - Supported spawn-set field name.value(string) - Field value, passed to the existing command handler.
Returns: None.