Hier finden Sie eine einfache Anleitung zum Ändern der Player-Geschwindigkeit mithilfe einer Tastaturtaste.
So ändern Sie die Player-Geschwindigkeit mithilfe einer Tastaturtaste mit Skript
Sie kopieren also diesen Code und fügen ihn in eine Datei „bonetown/game/mods/myfirstscript.cs“ ein
//declare our global variable to store the speed, it will increase each time you press the keys $myplayerspeed = "3"; // then our function to be called : function changeplayerspeed() { %tChar = ServerConnection.GameCharacter; //get the player object from engine if(%tChar !$= "" && %tChar !$= "0") //ensure the mission and player object are loaded !!! { %tChar.modifySpeed($myplayerspeed, 1); // set to speed to 4 or more ,change the value to test XD $myplayerspeed++; // this allow to auto increase the value each time the function is called by pressing the keys } } // this will call the function when you press CTRL + J keys ingame GlobalActionMap.bind(keyboard, "ctrl j", "changeplayerspeed", "Description: change the player speed to 4");
Sobald Sie das Spiel geladen haben und sich in einer Mission befinden, drücken Sie die Tasten STRG + J und Sie spielen schneller als zuvor.
By Codeman02Fr