I want to detect if the player gets near to an object that they can interact with, I have done some keyboard driven tests using
and it works fine.
Code: Select all
%result = %control.getLookAtPoint(%range,$TypeMasks::StaticShapeObjectType); %obj = getWord( %result, 0); %Message = "Looking at: " @ %obj.getName(); commandToClient(%client, 'ActionMessage', %Message);
I now want to set a schedule to do this every 250ms for each player.
I see how the scheduling is done but if I wanted this to happen for all players on a multiplayer system, what would the best way be to set up the schedules?
Would this also work for single player games with client and server on same machine?