This component can be added to any object to cause it to rotate itself to face the position of a specified object once, upon receiving an event.
Suggested use:
Send an event to make the owner rotate towards the given object. Use Dispatch on Update to make the owner consistently follow the chosen target, until the script is disabled.
Examples found in: Project 5
| Components | |||
|---|---|---|---|
| Property | Type | Description | Default Value | Component Properties |
| Initial Transform Object | Object | Initial object to rotate towards. If deleted or set to null, this script will try to find a tagged object to face. | None |
| Target Facing Tag | String | Tag to search for to find an object to face. | Untagged |
| Rotation Speed | Float | Speed per second to rotate towards target. | 360 | Event Receiving Info |
| Event Trigger | LPK Event Object | Which event will trigger this component's action. | None | Debug Properties |
| Print Debug Info | Boolean | Toggle console debug messages. | False |
| Label | String | Notes for the user about this component. This does nothing to the game or build. | None |