Jump to content
  • 0

WASD movement Lucera 2 source


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

  • 1
Posted
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
Guest
This topic is now closed to further replies.


×
×
  • Create New...