Remove the Lua return type of Beacon.New
This commit is contained in:
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[Desc("Creates a new beacon that stays for the specified time at the specified WPos. " +
|
||||
"Does not remove player set beacons, nor gets removed by placing them. " +
|
||||
"Requires the 'PlaceBeacon' trait on the player actor.")]
|
||||
public Beacon New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true)
|
||||
public void New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true)
|
||||
{
|
||||
var beacon = owner.PlayerActor.Info.TraitInfoOrDefault<PlaceBeaconInfo>();
|
||||
if (beacon == null)
|
||||
@@ -49,8 +49,6 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
owner.Color,
|
||||
duration);
|
||||
}
|
||||
|
||||
return playerBeacon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user