Results 1 to 3 of 3

Thread: playerMove(direction)

  1. #1
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts

    playerMove(direction)

    Would anyone like to have a function that moves a client based on wasd input?

    For example
    PHP Code:
    player playerMove("up");
    wait 1;
    player playerMove("down");
    wait 1;
    player playerMove("left");
    wait 1;
    player playerMove("right");
    wait 1;
    player playerMove("none"); 
    The client would move in the specified direction depending on current angle. So if i'm facing West and set left it will walk South. Also can be used to move clients/bots without worrying about clipping into objects, allowing more advanced bot path algorithms. Probably less server load too, with no need to use moveTo(), and stock movement/character animations should work.

    It can be done, just ask.
    Last edited by filthy_freak_; 8th July 2015 at 06:35.

  2. The Following 3 Users Say Thank You to filthy_freak_ For This Useful Post:

    ebusiangamers (8th July 2015),kung foo man (8th July 2015),the_law (8th July 2015)

  3. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Ehh, as if anybody says no to useful functions ^^
    timescale 0.01

  4. #3
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •