this is a code for my door system to alow only one person to go thought the door, but it sez the name PiBBelite is a bad var.Can you tell me why?
PiBB_door
name = "Door"
icon = 'doors.dmi'
icon_state = "closed"
density = 1
opacity = 1
verb
Open()
if(usr.key == PiBBelite )
set src in oview(1)
icon_state = "opened"
density = 0
opacity = 0
sleep(50)
icon_state = "closed"
density = 1
opacity = 1
else
usr<< "sorry not your house"
ID:149947
Jan 20 2002, 9:10 am
|
|
Jan 20 2002, 9:11 am
|
|
You forgot the "" around the key.
|
In response to Nadrew
|
|
oh i didnt know i needed it, this is my first time with the key thing
|
In response to Scoobert
|
|
ok well it doesnt work, when you right click on it it does nothing, the verbs for open doesnt show
|
In response to Scoobert
|
|
You have to set src in something.
|
In response to Nadrew
|
|
oh sorry i got it without your help, it was the indentions. But thans for trying to help.
|