• ENT.Touch isn't working.
    2 replies, posted
I'm trying to use ENT.Touch in my entity and it ain't workin' [lua] function ENT:Touch() if ( ent :IsValid() and ent:IsPlayer() ) then ent:PrintMessage( HUD_PRINTCENTER, "YOU ARE TOUCHING THE MAGIC BARREL" ) end end [/lua] That's what I'm using. Am I doing something wrong?
[LUA] function ENT:Touch( ent ) if ( ent:IsValid() and ent:IsPlayer() ) then ent:PrintMessage( HUD_PRINTCENTER, "YOU ARE TOUCHING THE MAGIC BARREL" ) end end [/LUA]
Doesn't work, I ran into it, walked on it, shot it, ect and nothing happens.
Sorry, you need to Log In to post a reply to this thread.