다음은 키보드 키를 사용하여 플레이어 속도를 변경하는 방법에 대한 간단한 자습서입니다.
스크립트와 함께 키보드 키를 사용하여 플레이어 속도를 변경하는 방법
따라서 이 코드를 복사하여 bonetown/game/mods/myfirstscript.cs에 넣습니다.
//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");
게임을 로드하고 임무를 수행 중이면 CTRL + J 키를 누르면 이전보다 빠르게 플레이할 수 있습니다.
By 코드맨02Fr