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 out 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.

Player & Item Input?

Discussion in 'Skript' started by Swacco, Apr 24, 2022.

Thread Status:
Not open for further replies.
  1. Swacco

    Swacco Member

    Joined:
    Apr 24, 2022
    Messages:
    1
    Likes Received:
    0
    Code (Text):
    1. loop all entities in radius 4 around player where [input is not a player and item]:
    2.                         push loop-entity backwards at speed 0.1
    How would exclude player and the item ? i been trying for a bit even used if loop-entity is item: stop and nothing still.
     
  2. Tacord

    Tacord Member

    Joined:
    May 7, 2022
    Messages:
    3
    Likes Received:
    0
    Maybe you can try this?

    Code (Text):
    1. loop all entities in radius 4 of player:
    2.     if loop-entity is not a player:
    3.         if loop-entity is not an item:
    4.             push loop-entity backwards at speed 0.1
     
Thread Status:
Not open for further replies.

Share This Page

Loading...