I've noticed that it is possible to male doors only openable by a certain class and i know u have to put comething like this into either shared.lua or addenetities.lua: AddDoorGroup [TEAM_POLICE} ITs something like that could someone plaese give me an example of what it should be and where it needs to go. Thanks for all help
Shared.lua
[code]
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
WARNING: THE DOOR GROUPS HAVE TO BE AT THE _BOTTOM_ OF SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!
The default door groups, can also be used as examples:
*/
AddDoorGroup("cops and mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("gundealer only", TEAM_GUN)
[/code]
k thanks
[editline]11:57AM[/editline]
but where abouts in shared.lua
in the bottom, you also need to have a recent revision to make this.
Get the SVN version.
Sorry, you need to Log In to post a reply to this thread.