I’ve just started learning LUA. I’m making a map for my server which has a Build area, DM area and a VIP area. These areas are all linked via teleports from a spawn room. In the spawn room & dm area I don’t allow props to be spawned, they are dissolved using “env_entity_dissolver” in my map. When props are dissolved I also would like a message to explain why. This message is called via a trigger_mutiple in the relevant area.
function noprops(ent) if (ent:GetClass() == "prop_physics") then ent:PrintMessage( HUD_PRINTCENTER, "Sorry, you cannot spawn props here. Please goto the Build area." ) end end
The above function isn’t working, any idea why? It may be totally wrong as I do a lot of trial and error.