Tirnanoc Posted October 10, 2023 Share Posted October 10, 2023 Heya, I was wondering if anyone could help me with a script idea. I was at a sim and an experience triggered a temporary HUD that lasted about 5 seconds on my screen to welcome me to the area with a PNG image. I want to know if anyone has any idea how to replicate this. I am new to scripting, and I cannot understand the language that great, so if anyone can help me out with coding this I'd be super grateful! Link to comment Share on other sites More sharing options...
Rolig Loon Posted October 11, 2023 Share Posted October 11, 2023 (edited) The function to study in the LSL wiki is llAttachToAvatarTemp. It doesn't require an Experience to work, but the only way to attach it without asking the avatar's permission explicitly is to use one. Then you'd activate the llAttachToAvatar function in the script's experience_permissions event. If you really want the HUD to detach again in a short period of time, just trigger a timer when the HUD is attached and let it call llDetachFromAvatar (again, in the experience_permissions event). ETA: The advantage of using llAttachtoAvatarTemp instead of llAttachToAvatar is that the HUD will simply disappear when detached, rather than being sent to the person's inventory. Edited October 11, 2023 by Rolig Loon 3 Link to comment Share on other sites More sharing options...
Quistess Alpha Posted October 11, 2023 Share Posted October 11, 2023 Also note that HUDs are just just ordinary SL objects, like the ones you can rez in-world, but attached to a HUD attach point. 2 Link to comment Share on other sites More sharing options...
Tirnanoc Posted October 11, 2023 Author Share Posted October 11, 2023 Thank you both so much ! I'll see if I can try and throw something together Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now