Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Help and Support v
« Previous 1 2 3 4 5 6 … 21 Next »
help with self-destruct timing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
help with self-destruct timing
26-02-2020, 10:03 AM, (This post was last modified: 26-02-2020, 10:06 AM by The17thDoctor. Edited 4 times in total.)
#4
The17thDoctor Online
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: help with self-destruct timing
Here's an SF version :
--@name Self Destruct
--@name Self Destruct
--@author Doccoboie
--@class processor

wire.createInputs({"Button"},{"normal"})
wire.createOutputs({"Selfdestruct"},{"normal"})

hook("input","inputhook",function(a,b)
if b == 1 then
time.simple(10,function() wire.ports.Selfdestruct = 1 wire.ports.Selfdestruct = 0 end)
end
end)

Note that if you spam it, it will create countless timers until it crashes so avoid spamming it Smile

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
help with self-destruct timing - by Funlax - 25-02-2020, 03:12 AM
RE: help with self-destruct timing - by mariofludd - 25-02-2020, 04:11 PM
RE: help with self-destruct timing - by Funlax - 25-02-2020, 09:51 PM
RE: help with self-destruct timing - by The17thDoctor - 26-02-2020, 10:03 AM
RE: help with self-destruct timing - by mariofludd - 08-03-2020, 09:59 AM

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