I want to detect if there's a player in the room, so I've placed a trigger_multiple $room_occupied
If there is a player detected in the room I want to 'show' a certain element but if there isn't a player detected I want that element to 'hide'.
Anyways, I don't have the understanding to this all by myself so let me show you the mess I came up with... It is based on my lift script.
Code: Select all
//*** Room ***
occupied_prep:
level.occupied=0 // 0 is not occupied, 1 is occupied
end
room_occupied:
$room_occupied nottriggerable
if (level.occupied==1)
{
$object show
level.occupied=1
}
else
{
$object hide
level.occupied=0
}
$room_occupied triggerable
end
//*** END - Room ***


