I’m attempting to allow the map to interact with the gamemode by placing a trigger brush in the map that is tied to an entity as “trigger_playermovement” with the name “checkpoint_00”.
Visual Reference: http://gyazo.com/5dd7d4be7b9ce86629973d9830faf629
Now in the gamemode’s code I added this bit to interact with the trigger brush:
function ENT:Touch("checkpoint_00") LocalPlayer():ChatPrint("TRIGGER!") end
However as soon as I launch the map I get this error:
[ERROR] gamemodes/skillrace/gamemode/init.lua:19: <name> or '...' expected near '"checkpoint_00"' 1. unknown - gamemodes/skillrace/gamemode/init.lua:0
I see it asks for a name, but I thought “checkpoint_00” would be the correct name.
Could somebody explain to me what I’m doing wrong here?
Thanks in advance! <3