Skip to main content

Execute_SetMeshToNearestSpawner

Description

Sets or clears the override mesh on the MeshSpawner of the site nearest to the BaseObject's current location. The nearest site is determined by the actor's located site or, if unavailable, the closest site found by distance. If S1 is empty, the override mesh is cleared.

Parameters

ParameterDescription
BaseObjectThe actor whose location is used to find the nearest site's MeshSpawner.
S1MeshDescription ID to set on the spawner. If empty, clears the override mesh.

Examples

DescriptionBaseObjectCommand
Set the House_Summer mesh on the nearest site's MeshSpawnerSelfSetMeshToNearestSpawner
Clear the override mesh on the nearest site's MeshSpawnerSelfSetMeshToNearestSpawner
Set the Building_Rain mesh on the MeshSpawner nearest TargetTargetSetMeshToNearestSpawner