Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not (WireAddon == nil) then self.Inputs = Wire_CreateInputs(self.Entity, { "Detonate!", "Arm"}) end
- if not (WireAddon == nil) then self.Outputs = Wire_CreateOutputs(self.Entity, { "Armed"}) end
- if (phys:IsValid()) then
- phys:Wake()
- end
- end
- function ENT:TriggerInput(iname, value) --wire inputs
- if (iname == "Detonate!") then
- if value == 1 then
- if self.isarmed == 1 then
- self:MakeGas()
- end
- end
- end
- if (iname == "Arm") then
- if value == 1 then
- self.isarmed = 1
- end
- if value == 0 then
- self.isarmed = 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement