A Question?

Is it possible to implement LUA inside a map?

For example, change a texture of a room to something else, make like a invisible box with LUA, that when your player stands in it it does a certain command.

Thanks in advanced.


(User was banned for this post ("Undescriptive thread title" - mahalis))

Indeed, it is. I saw that it was added once in a update description, but how you do it, I don’t know.

You’re looking for custom entities.

Thanks.

I was trying to figure out how perp sever made part of the map with different textures or matierals, whichever it was, without really editing the map or making us download the whole map over again.

I can’t seem to find any tutorials on how to make a custom entity in hammer and use LUA to do something with it.

Use keyvalues as seen here:
http://www.facepunch.com/showpost.php?p=16998406&postcount=5

If i copy that code and spawn a entity, name it trigger_usergroup set the keyvalue Usergroups and the value to admin, it will only allow admins to pass?

Or is there more to it then just that.