Skip to content

Commit

Permalink
Add LandOnGround Lua activity for aircraft.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Dec 13, 2024
1 parent 55bd680 commit 14eaaf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OpenRA.Mods.Common/Scripting/Properties/AircraftProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ public void ReturnToBase(Actor destination = null)
Self.QueueActivity(new ReturnToBase(Self, destination, true));
}

[ScriptActorPropertyActivity]
[Desc("Queues a landing activity on the specified cell.")]
public void LandOnGround(CPos cell)
{
Self.QueueActivity(new Land(Self, Target.FromCell(Self.World, cell)));
}

[ScriptActorPropertyActivity]
[Desc("Queues a landing activity on the specified actor.")]
public void Land(Actor landOn)
Expand Down

0 comments on commit 14eaaf0

Please sign in to comment.