Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 5 6 7 8 9 … 18 Next »
Function Request
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Function Request
25-01-2018, 01:19 PM,
#1
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
Function Request
i would like to have the same function from E2 in Starfall, "holoVisible". Basicly it only shows the players they are listed in there the Hologram.
if there is already something in SF i didnt found it on the Docs.
Find
Reply
25-01-2018, 02:26 PM,
#2
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: Function Request
See https://github.com/wiremod/wire/blob/mas...logram.lua
Code:
e2function void holoVisible(index, array players, visible) local Holo = CheckIndex(self, index) if not Holo then return end set_visible(Holo, players, visible) end
The client receives a net message and does the equivalent of
Code:
Hologram:setNoDraw(<boolean>)
Don't call this on the server, it might make the entity cease to exist clientside.
E2 can't run on the client, but starfall can. So it's up to you to synchronize this. Just be careful, if you do it like this the entity might flash visible to everyone for a second, as it does with E2.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.