Page 1 of 1

istouching trigger

Posted: Sat Mar 20, 2004 3:09 pm
by fuhrer
ok heres my problem, i have a door and 2 multiple triggers..

the first one is door_trigger, the second door_trigger_standby.

my idea is, door_trigger opens the door but only while a player is still triggering it. however that trigger will not fire unless someone else is triggering door_trigger standby... summary boths triggers need to be fire to open the door..

so far i have it working so that at the start, door trigger is not triggerable.

script....

Code: Select all

door_standby:

$door_standby_trigger nottriggerable
local.player = parm.other
while (local.player istouching $door_standby_trigger)
{
$door_trigger triggerable
$door_standby_trigger triggerable
end
}

it works but, door_trigger remains triggerable after door_standby thread has been triggered, which is not the idea..

how do i script it so that door_trigger will not fire unless another player is standing in the door_standy trigger.

Posted: Thu Mar 25, 2004 6:56 am
by nuggets
$door_standby_trigger nottriggerable
end

door_standby:
local.player = parm.other
while (1)
if (local.player istouching $door_standby_trigger)
{
$door_trigger triggerable
$door_standby_trigger triggerable
wait .5
end
}
else
{
$door_trigger nottriggerable
$door_standby_trigger nottriggerable
wait .5
end
}