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
| Parameter | Description |
|---|---|
| BaseObject | The actor whose location is used to find the nearest site's MeshSpawner. |
| S1 | MeshDescription ID to set on the spawner. If empty, clears the override mesh. |
Examples
| Description | BaseObject | Command |
|---|---|---|
| Set the House_Summer mesh on the nearest site's MeshSpawner | Self | SetMeshToNearestSpawner |
| Clear the override mesh on the nearest site's MeshSpawner | Self | SetMeshToNearestSpawner |
| Set the Building_Rain mesh on the MeshSpawner nearest Target | Target | SetMeshToNearestSpawner |
Back to Command FinderSearch and filter all 399 Script Execution documents