Object Look at Location
Turn an object to face a target position when a button is clicked.
Introduction
Object Look at Location turns an object to face a target position. It sets the object's Forward to the direction from the object to the target, so the object looks at that place. This is how a button makes an object face a place. caption Make the object look at a target position when a button is clicked: When button is clicked by Player -> Set (this object, Group.Forward, Change To, Target Position - Self.Group.Position)
Steps
Add the event When button is clicked by Player. Add a Set command under it. Set the target to this object and pick the property Group.Forward. Set the mode to Change To and set the value to the target position minus Self.Group.Position.
When to use it
A button that turns an object to face a place. Characters and objects that look at a target. Aiming an object at a position before it moves or acts.
Notes
Forward is a direction, so the value is the target position minus the object's own position. This only turns the object, it does not move it, pair it with Move Object to Location to go there.