1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Push players from location

Discussion in 'Skript' started by uGim, May 2, 2018.

Tags:
Thread Status:
Not open for further replies.
  1. uGim

    uGim Active Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Code (Skript):
    1. loop players in radius 20 of {_location}:
    2.             push loop-player away from {_location} with speed 1
    Is it possible to do it so all players are pushed back from a location?
     
  2. Best Answer:
    Post #2 by ShaneBee, May 2, 2018
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,123
    Likes Received:
    158
    Yes, This is totally possible, you will need SkQuery to get the direction to push them, and then use this code

    Code (Skript):
    1. loop players in radius 20 of {_location}:
    2.     push player (direction from {_location} to player) at speed 1
     
    • Winner Winner x 1
  4. uGim

    uGim Active Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Thx bro. Works perfect.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,123
    Likes Received:
    158
    Awesome, glad it worked for you, make sure to click the best answer button :emoji_wink:
     
Thread Status:
Not open for further replies.
Loading...