Skip to content

AIMover ​

class in OpalScript

Drives a character controller (set to Controlled By: AI) to patrol, follow, or flee — no Flow wiring needed.

Properties ​

MemberDescription
AIMover.EnabledWhether this component is enabled. Use SetEnabled to change it.
AIMover.PathingTrue while following a route around obstacles rather than moving straight.
AIMover.HasLineOfSightTrue when nothing blocks the straight line to the current target — the check a ranged attack should gate on.
AIMover.DrivingRead-only runtime value. Use component methods to change state.
AIMover.CoverSeekingAn active cover request. Cleared when canceled, control is lost, or no cover is available.
AIMover.IsInCoverTrue while hidden from the current target.

Methods ​

MemberDescription
AIMover.SetCoverSeekingRequest or release cover using native geometry and reservations.
AIMover.MoveToAsyncMove toward a world-space point and return an owned task for this move. Stopping or replacing the move cancels its task.
AIMover.StopStop the currently owned point move.
AIMover.SetEnabledEnable or disable this component's behavior.
AIMover.SetTargetChase a specific object. Switches Target to "A specific object" — otherwise auto-targeting would overwrite this pick on its next retarget.
AIMover.HasTargetWhether the mover currently has a target.
AIMover.SeesTargetWhether its target is within detection range.

See also ​