This may be a newbie questions. But i need some help. I want to be able to lock and unlock doors without opening them. But i cant find a way to check if the door is locked or not.
(if(send gEgo:has(INV_KEY))
This checks of i have the key.
(if( == (aDoor:doorState) DOOR_OPEN)
This checks if the door is open.
But i cant find a way to check if the door is locked...
And then i have another problem...
(instance RoomScript of Script
(properties)
(method (handleEvent pEvent)
If i want the (method (doit), where should i put it?.. it seems as it doesnt work anywhere for me. I know the questions may be lame, but im new to this...