Results 1 to 3 of 3
  1. #1
    myamazingcat's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    5
    My Mood
    Amused

    While player is moving?

    hello, I need a script to do an action while a player is moving.
    heres an example:

    Code:
    while(????)
    {
           self thread dotime();
    }
    else
    {
           self thread dopassword();
    )
    I just don't know how to find out when a player is moving,
    any help would be much appreciated. It can be in any form you want, you don't necessarily need to use any of the commands i put up there, It just needs to be able to do an action when a player is moving, and to stop when hes not. thanks for reading, I hope you can help!

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,827
    Reputation
    3310
    Thanks
    74,549
    My Mood
    Breezy
    Code:
    isMoving()
    {
       startOrigin = self.origin;
       wait 0.01;
       return startOrigin != self.origin;
    }
    
    //Example usage:
    while(self isMoving())
        //Do something
    /marked as solved
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7 *NEW* 2017 Update!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    myamazingcat's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    5
    My Mood
    Amused
    thank you very much, ill try it now and see if it works.