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 »
Problem with "input" hook
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Problem with "input" hook
28-05-2018, 11:50 PM, (This post was last modified: 28-05-2018, 11:53 PM by SharpOB. Edited 3 times in total.)
#1
SharpOB Offline
TSCM Member
***
Posts: 37
Threads: 8
Joined: Apr 2017
Problem with "input" hook
When using
Code:
hook.add("input","a",a)
it seems that
Code:
a()
is not called when something is spawned already wired (think duping or updating/reloading) or when a wire is removed.

Is this intentional behaviour and is there a way around this? I'd like my server to sent a net message to the client whenever any wire anything is changed - and the "input" hook looks like the right one for this but doesn't seem to work.

I tried manually calling toClient() to send a net message to the client in my code - for when duped/updated - but for some odd reason the client recieved the correct new value which promptly changed to 0 - which is not correct.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Problem with "input" hook - by SharpOB - 28-05-2018, 11:50 PM
RE: Problem with "input" hook - by Red The Blue Color - 29-05-2018, 01:09 AM
RE: Problem with "input" hook - by SharpOB - 29-05-2018, 06:35 PM
RE: Problem with "input" hook - by Kosmos - 30-05-2018, 09:47 AM
RE: Problem with "input" hook - by SharpOB - 30-05-2018, 01:04 PM

  • 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.