Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ENT:Use(pl)
- if ((self.nextUse or 0) >= CurTime()) then
- return
- end
- if IsValid(self.lastComp1) then
- self.lastComp1:Remove()
- end
- if IsValid(self.lastComp2) then
- self.lastComp2:Remove()
- end
- local ent1 = ents.Create("eml_comp1")
- ent1:SetPos( self.poscomp1 )
- ent1:Spawn()
- self.lastComp1 = ent1
- local ent2 = ents.Create("eml_comp2")
- ent2:SetPos( self.poscomp2 )
- ent2:Spawn()
- self.lastComp2 = ent2
- self:EmitSound("ambient/levels/canals/toxic_slime_sizzle3.wav", 70, 100, 0.2);
- self.nextUse = CurTime() + 2
- end
Add Comment
Please, Sign In to add comment