Hey,
I’m making new sniper map with 1 vs 1 portal.
It should work like: one person from team can teleport if noone form team is in it.
When two people from each team are in, a script_mover (zaslona) goes down, but when only 1 or 0 script_mover goes up.
I’ve got two trigger_multiple entities and 2x enabler/disabler.
What should i add/change in script?
enabler1
{
trigger run
{
trigger zaslona enable1
}
}
enabler2
{
trigger run
{
trigger zaslona enable2
}
}
disabler1
{
trigger run
{
trigger zaslona disable1
}
}
disabler2
{
trigger run
{
trigger zaslona disable2
}
}
zaslona
{
spawn
{
accum 1 set 0
accum 2 set 0
}
trigger down
{
accum 1 abort_if_not_equal 1
accum 2 abort_if_not_equal 1
gotomarker markerdown 30 wait
}
trigger up
{
accum 1 abort_if_equal 1
accum 2 abort_if_equal 1
gotomarker markerup 30 wait
}
trigger enable1
{
accum 1 inc 1
}
trigger enable2
{
accum 2 inc 1
}
trigger disable1
{
accum 1 inc -1
}
trigger disable2
{
accum 2 inc -1
}
}
How to disable teleporting/pushing button when someone is in trigger_multiple?
