ID:170234
Mar 3 2005, 6:48 am
|
|
Can anyone give me a code that allows only certain players to enter an area, similar to onefishdown's code in his GTA game?
|
In response to Shades
|
|
Not quite Shades. =)
You want to return 0 if you don't want to let them in, otherwise return ..() so that you don't override the usual procedure (preventing a dense atom from moving into a space already holding a dense atom). area/only_goblin_mobs_allowed This will prevent any mobs that aren't of type /mob/goblin from entering. Please note the ismob() check, that's there to still allow objects to enter normally. |
I dont know if I did the return 1 right. I gave him exactly what he asked for though. =P