set_actor_lock_location
Lock or unlock an actor's location in the editor world to prevent accidental movement during viewport dragging or batch transform passes. Requires saving the level to persist.
Instructions
Lock or unlock an actor in the EDITOR world so viewport dragging cannot move it by accident (AActor::SetLockLocation). Pin landmarks -- PlayerStart, landscape, hand-placed props -- before a batch transform pass. Calls Modify(), so it dirties the actor's package and needs a save_level to persist. Read the flag back with get_actor_lock_location. Does not affect runtime/PIE movement.
Returns: { applied, actor_name, locked }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locked | Yes | True to lock, false to unlock | |
| actor_name | Yes | Actor's internal name (GetName) or editor label (GetActorLabel); exact match, editor world only. |