Skript-holo Holograms Disappearing

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

Tresre

Member
Jul 5, 2020
1
0
1
24
I have a skript that creates a hologram which follows the player around using skript-holo. It works, and it updates fine with another function. However, when another player joins and the hologram is updated for both players, it disappears. The only way I've found to temporarily fix it is to manually delete and recreate it with effect commands, but then I would have to resend the function which updates the hologram as well. How can I make it so it doesn't disappear? Below is the function I use for creating the holograms.


Code:
function holoLine(p: player, line: integer, text: string):
    if {_text} is "clear":
        set line {_line} of following holograms of {_p} to ""
    else if {tk.g.hasholo::%{_p}%} is true:
        set line {_line} of following holograms of {_p} to "%{_text}%"
    else:
        create holo that follows {_p} with offset (3 meters above and 3 meters infront) and store in {tk.g.holo::%{_p}%}
        make the last holo invisible by default
        wait 10 ticks
        reveal holos {tk.g.holo::%{_p}%} to {_p}
        #hide created hologram from all players
        #wait 5 ticks
        #reveal created hologram to {_p}
        set line {_line} of created hologram to "%{_text}%"
        set {tk.g.hasholo::%{_p}%} to true
 
Status
Not open for further replies.