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.

Skript-holo Holograms Disappearing

Discussion in 'Skript' started by Tresre, Jul 5, 2020.

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

    Tresre Member

    Joined:
    Jul 5, 2020
    Messages:
    1
    Likes Received:
    0
    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 (Text):
    1. function holoLine(p: player, line: integer, text: string):
    2.     if {_text} is "clear":
    3.         set line {_line} of following holograms of {_p} to ""
    4.     else if {tk.g.hasholo::%{_p}%} is true:
    5.         set line {_line} of following holograms of {_p} to "%{_text}%"
    6.     else:
    7.         create holo that follows {_p} with offset (3 meters above and 3 meters infront) and store in {tk.g.holo::%{_p}%}
    8.         make the last holo invisible by default
    9.         wait 10 ticks
    10.         reveal holos {tk.g.holo::%{_p}%} to {_p}
    11.         #hide created hologram from all players
    12.         #wait 5 ticks
    13.         #reveal created hologram to {_p}
    14.         set line {_line} of created hologram to "%{_text}%"
    15.         set {tk.g.hasholo::%{_p}%} to true
     
Thread Status:
Not open for further replies.

Share This Page

Loading...