• Lua trigger on map
    1 replies, posted
Hello, i need help with trigger - i have map, triger and lua code. I want when player enters trigger zone we start lua code, i think it's very easy but i am noob in mapping/codding [URL="http://radikal.ru/F/i003.radikal.ru/1107/ac/e8b1d4f4ab7e.jpg.html"][IMG]http://i003.radikal.ru/1107/ac/e8b1d4f4ab7et.jpg[/IMG][/URL] If you can, write please mini-guide how to do it (would be good if you also add some pictures) Or just let the link to guide if it is already there (i don't found)
if you didn't add the Garrysmod.fgd to the mapping properties, then do it like this: 1. create a point_serverside/point_clientside entity (depends wether your code is executed clientside/serverside) 2. add the this code to the execute console command: "lua_run/lua_run_cl <executed code>" 3. add an input to the trigger, wich triggers the point_serverside/clientside. 4. compile map 5. test map.
Sorry, you need to Log In to post a reply to this thread.