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
30-05-2018, 09:47 AM,
#4
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: Problem with "input" hook
The only time the hook is not triggered is when a duped or restarted, as the update happens before you can register your hook. You can compensate for that using
Code:
for _, v in pairs(wire.self():inputs()) do hook.run("input", v, wire.ports[v]) end
If you add a wire or remove it, the hook will get triggered.
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.