How to parse teleport flags?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Hackusater

Active Member
Aug 5, 2017
74
2
8
34
I am sending a teleport packet to the player but there is a parameter that I am having trouble with.

Code:
command /test:
    trigger:
        #/tp Player ~ ~ ~ 10 10 //the command that i type to recieve these packets
        #0, 0, 0, 10, 10, [X, Y, Z], 38, false //these are the values that are returned when i teleport the player
        set {_testpacket} to new play_server_position packet
        set field 0 of {_testpacket} to 0
        set field 1 of {_testpacket} to 0
        set field 2 of {_testpacket} to 0
        set field 3 of {_testpacket} to 10
        set field 4 of {_testpacket} to 10
        #set field 5 of {_testpacket} to "[X, Y, Z]" //this is what is causing my problems, it doesn't like that it is a string
        #set field 6 of {_testpacket} to ? //this number increases by 1 every time i teleport the player, not sure why
        set field 7 of {_testpacket} to false
        send packet {_testpacket} to player

I'm not sure what to change field 5 to, it gives me errors because it isn't supposed toe be a string.
 
Last edited:
Status
Not open for further replies.