My SWEP spawns a prop_physics, and when touched, makes an explosion that kills. It hasn't been working.
[CODE]function SWEP:Touch(ent)
if IsValid(ent) and ent:IsPlayer() and ent:Alive() then
local ent = ents.Create("env_explosion")
ent:Spawn()
end
end[/CODE]
What do you mean touch?
As in E has been pressed on it?
[QUOTE=mib999;38490939]What do you mean touch?
As in E has been pressed on it?[/QUOTE]
Sorry, I fixed it. I wanted that the player touched an entity spawned by the SWEP. I figured it out.
[QUOTE=Turtle95;38491813]Sorry, I fixed it. I wanted that the player touched an entity spawned by the SWEP. I figured it out.[/QUOTE]
Post the solution? I have when people say "I figured it out" then fail to tell us how they did it >_>
Sorry, you need to Log In to post a reply to this thread.