Trigger Commands

How do you / Can you run a command defined in a game mode via a map trigger?

point_clientcommand or point_servercommand

do this, but make sure the entity is named, and you want your trigger to have this output:

name of point entity

I tried using a point_clientcommand entity in one of my maps, but I could never get it to work in Gmod, although it worked in Portal, Ep 2, etc.

Later someone told me that point_clientcommand was disabled in gmod because it was a hack vulnerability.

Is this true?


I think you can execute custom lua code, which is really bad

could you elaborate on how I would do this? and could you possibly show me some examples of lua code that would perform this function? i’ve never done any lua coding before.