From 36ba9c687517035ed7ebdb7cc36bfdabff9265b6 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sun, 14 Jul 2024 18:37:27 +0200 Subject: [PATCH] Added some missing commands to the scriptlibrary --- P3D/World/ActionScript/V2/ScriptLibrary.vb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/P3D/World/ActionScript/V2/ScriptLibrary.vb b/P3D/World/ActionScript/V2/ScriptLibrary.vb index 18e3a06d8..a6316b8d6 100644 --- a/P3D/World/ActionScript/V2/ScriptLibrary.vb +++ b/P3D/World/ActionScript/V2/ScriptLibrary.vb @@ -512,7 +512,8 @@ Namespace ScriptVersion2 New ScriptArgument("z", ScriptArgument.ArgumentTypes.Sng), New ScriptArgument("facing", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Warps the player to a new location on a new map and changes the facing afterwards. To get relative coordinates, enter a ""~"".")) r(New ScriptCommand("player", "stopmovement", "Stops the player movement.")) - r(New ScriptCommand("player", "addmoney", {New ScriptArgument("amount", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Adds the given amount to the player's money.")) + r(New ScriptCommand("player", "AddMoney", {New ScriptArgument("amount", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Adds the given amount to the player's money.")) + r(New ScriptCommand("player", "RemoveMoney", {New ScriptArgument("amount", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Removes the given amount from the player's money.")) r(New ScriptCommand("player", "addcoins", {New ScriptArgument("amount", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Adds the given amount to the player's coins.")) r(New ScriptCommand("player", "setspeed", {New ScriptArgument("speed", ScriptArgument.ArgumentTypes.Sng)}.ToList(), "Sets the speed of the player. The default is ""1"".")) r(New ScriptCommand("player", "resetspeed", "Resets the walking speed of the player to the default speed, which is ""1"".")) @@ -520,6 +521,8 @@ Namespace ScriptVersion2 New ScriptArgument("y", ScriptArgument.ArgumentTypes.Int), New ScriptArgument("z", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Sets the direction the player will move next regardless of facing.")) r(New ScriptCommand("player", "resetmovement", "Resets the player movement to the default movement directions.")) + r(New ScriptCommand("player", "PreventMovement", "Makes the player unable to move, while still keeping control over the menu, interactions etc.")) + r(New ScriptCommand("player", "AllowMovement", "Gives the player back their ability to move after using @Player.PreventMovement.")) r(New ScriptCommand("player", "getbadge", {New ScriptArgument("badgeID", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Adds the given Badge to the player's Badges and displays a message.")) r(New ScriptCommand("player", "removebadge", {New ScriptArgument("badgeID", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Removes the given Badge from the player's Badges.")) r(New ScriptCommand("player", "addbadge", {New ScriptArgument("badgeID", ScriptArgument.ArgumentTypes.Int)}.ToList(), "Adds the given Badge from the player's Badges."))