Joystick left and right direction control||doc136156

September 20, 2022

Format

 GameSettings.poleStrafe 

Description

Direction control of the joystick left and right ( > 0 : left, < 0 : right, = 0 : still).


Precautions

The mobile ui drag is operated by addition and subtraction, and the size is 1. If the set value is greater than 1, then the player will not be able to move in the opposite direction by dragging the mobile ui


assign

value Effect
Greater than 0 move to the left
equal to 0 no effect
Less than 0 move to the right


Value Returned

type Description
float The variable that controls the left and right movement


Code Samples

Set the current client player to move all the way to the left

local bm = Blockman.Instance().gameSettings
bm.poleStrafe = 1
print(bm.poleStrafe)