aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/strategic_orders.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-runtime/src/strategic_orders.rs')
-rw-r--r--crates/fparkan-runtime/src/strategic_orders.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/strategic_orders.rs b/crates/fparkan-runtime/src/strategic_orders.rs
index d49fa963..a20153b0 100644
--- a/crates/fparkan-runtime/src/strategic_orders.rs
+++ b/crates/fparkan-runtime/src/strategic_orders.rs
@@ -50,6 +50,15 @@ pub fn stand(engine: &mut Engine, cockpit: StartingCockpit, actor: ObjectHandle)
issue(engine, cockpit, actor, UnitOrder::Stand)
}
+/// Orders the selected warbot to search for hostile mobile units.
+pub fn search_and_destroy(
+ engine: &mut Engine,
+ cockpit: StartingCockpit,
+ actor: ObjectHandle,
+) -> bool {
+ issue(engine, cockpit, actor, UnitOrder::SearchAndDestroy)
+}
+
/// Replaces the selected warbot's order with the confirmed sequence of world points.
pub fn follow_route(
engine: &mut Engine,