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.

Spectators blocking arrows

Discussion in 'Skript' started by Uzumaki, Dec 22, 2017.

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

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    There are any way to fix this?

    my code

    Code (Skript):
    1. function sg_setspec(p: player):  
    2.     hide {_p} from all players
    3.     set {_p}'s flight mode to true
     
  2. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Disable their entity collision
     
    • Like Like x 1
  3. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
  4. FUZIK

    FUZIK Active Member

    Joined:
    Jan 26, 2017
    Messages:
    114
    Likes Received:
    10
    docs
     
    • Like Like x 1
  5. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    Thanks, but not work.
    --- Double Post Merged, Jan 21, 2018, Original Post Date: Jan 21, 2018 ---
    bump
     
  6. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    107
    Medals:
  7. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
  8. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    Are you using skrayfall if so Disable THE scoreboard stuff To make use of Things like nametag visibilty And collision skrayfall is blokking this
     
  9. ImOfflinezzz

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    73
    Likes Received:
    10
    Collision is nothing about existance. Server checks if player exists and hit it with arrow. All you need is change packet that makes arrow hit hidden player. Can't do rn but maybe will come with solution little later)
     
  10. it_twit

    it_twit Member

    Joined:
    Jan 26, 2017
    Messages:
    37
    Likes Received:
    3
    Medals:
    The game's source code only considers players that have their collision enabled when checking if the bounding boxes intersect. I highly doubt you are able to trick the minecraft server to this extent using only packets

    What skript and minecraft version are you on?
    What code did you exactly use?
    What addons do you have/

    Also if you have skript-mirror try
    Code (Skript):
    1. player.setCollidable(false);
     
    #10 it_twit, Jan 25, 2018
    Last edited: Jan 25, 2018
  11. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    Spigot 1.8.8

    addons:
    skquery
    skellet
    skrayfall
    Tuske
     
  12. it_twit

    it_twit Member

    Joined:
    Jan 26, 2017
    Messages:
    37
    Likes Received:
    3
    Medals:
    1.8.8 doesn't support the collidable option for players so the only other checks for arrow collision are if the player is in the spectator gamemode or if the player "doesn't exist" according to the world

    EDIT:
    Actually, try
    Code (Skript):
    1. set player.getHandle().collidesWithEntities! to false
    ^^^ Requires skript-mirror
     
    #12 it_twit, Jan 25, 2018
    Last edited: Jan 25, 2018
  13. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    is working but arrows remain invisible after going through player.
     
  14. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
    I may ask, why not just use the real spectator mode?
     
  15. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    i have hotbar items like, "teleport to alive players", "sponsor", "leave".
     
  16. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
    You can put items in the spectator inventory, and the spectator mode itself offers these features, you just have to play with the options
     
  17. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    just no, you can't use the items from hotbar in spectator mode.
     
  18. it_twit

    it_twit Member

    Joined:
    Jan 26, 2017
    Messages:
    37
    Likes Received:
    3
    Medals:
    After some testing it appears that the arrow turns invisible with creative players as well, so I believe this is a clientside issue. I tested hiding the player being hit from other players and the arrow shows perfectly for other players, just not the spectator being "hit"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...