Jump to content
  • 0

WASD movement Lucera 2 source


LinIeIage

Question

Hi everyone, I can't find where the movement controller in my source for WASD keys. Can someone help me with this? I need to turn off moves when players press that keys.

Edited by Vision
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1
2 hours ago, LinIeIage said:

Hi everyone, I can't find where the movement controller in my source for WASD keys. Can someone help me with this? I need to turn off moves when players press that keys.

 

go to:

 

gameserver/network/clientpackets/MoveBackwardToLocation.java

 

_moveMovement = readD(); // is 0 if cursor keys are used 1 if mouse is used

find		if (activeChar == null)
			  return;

and add:

		if (_moveMovement == 0)
			return;

 

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...