• Calling a DermaPanel?
    2 replies, posted
I wish to call a DermaPanel to the client when they press USE on an entity. How would I go about this? I tried creating a hook and then running the hook from ENT:USE but it didn't work. Is there another way to do this? I NEED to stay away from using a console command as I do not want everyone to be able to access it unless they press USE on the Ent. Thank you for your time and help! [editline]16th May 2014[/editline] Would a usermessage.Hook work?
[url]http://wiki.garrysmod.com/page/Net_Library_Usage[/url] Go wild.
The proper function is ENT:Use or ENT:AcceptInput Alternatively, you could use PlayerBindPress, or other such hooks. As for networking, here's a simple tutorial for networking booleans; you wouldn't need to write any data if you create a different message for each entity, if you want to link entities, WriteEntity and ReadEntity. [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/networking/networking_booleans.lua.html[/url]
Sorry, you need to Log In to post a reply to this thread.