AIMover
class in OpalScript
Drives a character controller (set to Controlled By: AI) to patrol, follow, or flee — no Flow wiring needed.
Properties
| Member | Description |
|---|---|
| AIMover.Enabled | Whether this component is enabled. Use SetEnabled to change it. |
| AIMover.Pathing | True while following a route around obstacles rather than moving straight. |
| AIMover.HasLineOfSight | True when nothing blocks the straight line to the current target — the check a ranged attack should gate on. |
| AIMover.Driving | Read-only runtime value. Use component methods to change state. |
| AIMover.CoverSeeking | An active cover request. Cleared when canceled, control is lost, or no cover is available. |
| AIMover.IsInCover | True while hidden from the current target. |
Methods
| Member | Description |
|---|---|
| AIMover.SetCoverSeeking | Request or release cover using native geometry and reservations. |
| AIMover.MoveToAsync | Move toward a world-space point and return an owned task for this move. Stopping or replacing the move cancels its task. |
| AIMover.Stop | Stop the currently owned point move. |
| AIMover.SetEnabled | Enable or disable this component's behavior. |
| AIMover.SetTarget | Chase a specific object. Switches Target to "A specific object" — otherwise auto-targeting would overwrite this pick on its next retarget. |
| AIMover.HasTarget | Whether the mover currently has a target. |
| AIMover.SeesTarget | Whether its target is within detection range. |