We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e3e5ad commit 45517aaCopy full SHA for 45517aa
MethodSystem/Methods/PickupMethods/SpawnPickupMethod.cs
@@ -10,7 +10,7 @@
10
namespace SER.MethodSystem.Methods.PickupMethods;
11
12
[UsedImplicitly]
13
-public class SpawnPickupMethod : SynchronousMethod, ICanError
+public class SpawnPickupMethod : ReferenceReturningMethod<Pickup>, ICanError
14
{
15
public override string Description => "Spawns an item pickup at a given position.";
16
@@ -45,5 +45,6 @@ public override void Execute()
45
46
if (pickup is null) throw new ScriptRuntimeError(ErrorReasons[0]);
47
pickup.Spawn();
48
+ ReturnValue = pickup;
49
}
50
0 commit comments