![]() |
|
Function Request - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: Function Request (/thread-2608.html) |
Function Request - 4N0NYM - 25-01-2018 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. RE: Function Request - Kosmos - 25-01-2018 See https://github.com/wiremod/wire/blob/master/lua/entities/gmod_wire_expression2/core/hologram.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)
endCode: Hologram:setNoDraw(<boolean>)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. |