G.SuppressHostEvents

From GMod Wiki

Revision as of 10:38, 9 December 2009 by Ghor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax SuppressHostEvents( Player Player )
Where is this used?
Description:
Suppresses network data to a player.
Returns: nil
Part of Library: Global Functions
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SuppressHostEvents]G.SuppressHostEvents [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates an explosion at the origin of the map that won't show up for a random player.
Used onNewerServer.png
Code
 
local pl = table.Random(player.GetAll())
local effectdata = EffectData()
effectdata:SetOrigin(Vector(0,0,0))
SuppressHostEvents(pl)
util.Effect("Explosion",effectdata)
SuppressHostEvents(NULL)
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox