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 laying/sitting down model

Discussion in 'Skript' started by Vexio, May 16, 2017.

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

    Vexio Active Member

    Joined:
    Jan 26, 2017
    Messages:
    92
    Likes Received:
    10
    Is there any sort of syntax or feature that allows me to make a player model lay down (like in a Bed) but not in a bed.
    Context:
    [​IMG]
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    216
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    216
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    216
    RandomSk is pretty outdated. Only Solution that may work is forcing someone to sleep in a bed and then teleporting them, but the last time I tried something like that, the first person view of the player was buggy. (1.11 may have fixed that)
    You can try turning the player invisible and then creating a npc and making it sleep in a bed and then teleport him there.
     
    • Friendly Friendly x 1
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    216
    Only solution that you know*, the world has plenty of solutions for a single thing. And yeah, RandomSK is pretty outdated but it's still working on 1.9+ with the SpecialSourceFix.

    So, this can be done with MundoSK packets stuff:
    Code (Skript):
    1. function packetBedAnimation(player: player, bed: location):
    2.     set {_packet} to new play_server_bed packet
    3.     set location pinfo 0 of {_packet} to {_bed}
    4.     set {_player}'s world pentity 0 of {_packet} to {_player}
    5.     send {_player} packet {_packet}
     
    #5 ShaneBee, May 17, 2017
    Last edited by a moderator: May 17, 2017
Thread Status:
Not open for further replies.

Share This Page

Loading...