Rename the airfield parameter to destination
This commit is contained in:
@@ -38,13 +38,13 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ScriptActorPropertyActivity]
|
[ScriptActorPropertyActivity]
|
||||||
[Desc("Return to the base, which is either the airfield given, or an auto-selected one otherwise.")]
|
[Desc("Return to the base, which is either the destination given, or an auto-selected one otherwise.")]
|
||||||
public void ReturnToBase(Actor airfield = null)
|
public void ReturnToBase(Actor destination = null)
|
||||||
{
|
{
|
||||||
if (isPlane)
|
if (isPlane)
|
||||||
Self.QueueActivity(new ReturnToBase(Self, false, airfield));
|
Self.QueueActivity(new ReturnToBase(Self, false, destination));
|
||||||
else
|
else
|
||||||
Self.QueueActivity(new HeliReturnToBase(Self, false, airfield));
|
Self.QueueActivity(new HeliReturnToBase(Self, false, destination));
|
||||||
}
|
}
|
||||||
|
|
||||||
[ScriptActorPropertyActivity]
|
[ScriptActorPropertyActivity]
|
||||||
|
|||||||
Reference in New Issue
Block a user