Hello,
I'm making a map for my gamemode and I want, at the end of my map a trigger who will call an Lua function wich will stop a Timer, I found the way with this hook 'ENT.StartTouch' the problem I have is I don't know how I can tell to my gamemode thats the ENT is my trigger.
Can you help me ?
Please I really need help with this, theres nothing on the Wiki.
You are better off doing the entire thing with lua.
[QUOTE=mdeceiver79;38503383]You are better off doing the entire thing with lua.[/QUOTE]
I'm making a kind of racing gamemode and theres a timer and It must stop when someone reach the end(Trigger), so I don't see how I can do it only with Lua.
I tried to look at the Game Master gamemode but nothing about the trigger, I only found the function who play the end sound and tell you that you have made it to the end...
Ah cool turns out im wrong
[url]http://glua.me/bin/?path=/gamemodes/base/entities/entities/lua_run.lua[/url]
Brush based entity that does what you need.
you can make your own brush entities in lua pretty easily, open gmod.gcf and look in the entities folder for the base gamemode.
You're better off using a lua_run to fun a function and compiling a .lua file into your map.
Oooh, lua_run works?
This could be useful to me.
Last time I saw lua integrated in a map was Spacew00ts lighting system.
It's a very useful entity and I use it a lot.
I didn't know it ever did not work, but if it doesn't it should not be hard to recreate it and compile it into the map as well.
Sorry, you need to Log In to post a reply to this thread.