Page 1 of 1

trigger in a trigger

Posted: Sun Jul 03, 2005 2:05 am
by ViPER
can a portion of trigger 1 be overlapped by another trigger (trigger 2) to make that area (the overlap) of trigger 1 non effecting??

that is trigger 2 inside trigger 1..



how to set up trigger 2 ?

Posted: Sun Jul 03, 2005 3:23 am
by lizardkid
So you want the area with Trigger 2 overlapping Trigger 1, to not have trigger 1 fire? why not just roll back trigger 1? or make a third one if you want teh overlap to compute separetely.

Posted: Sun Jul 03, 2005 5:38 am
by ViPER
hmmm, dont follow. what i have is a kill trigger (under map fix) there are four ladders that pass through the kill area that i want immune.

I could make seperate triggers to wrap around those four areas that would be alot of work, but was wondering if i could just overlap a counter trigger in those specific areas?

Posted: Sun Jul 03, 2005 6:26 am
by lizardkid
i see, well try this... in the thread that the triggers call...

Code: Select all

if($player[local.i] isTouching $trigger1 && $player[local.i] isTouching $trigger2)
{
// premature ending of the thread. like a quick goto and have a label near the end.
}
EDIT: Arg. blar. thats what i get for copy/pasting. sorry Rook.

Posted: Sun Jul 03, 2005 7:05 am
by Rookie One.pl
You're checking 2 times if the player's touching the very same trigger, Lizard. :?

Posted: Sun Jul 03, 2005 9:12 am
by ViPER
maybe something like this ?

Code: Select all

if($player[local.i] isTouching $trigger2)
{ 
wait 20 //to be safe while passing through kill zone
}
else if($player[local.i] isTouching $trigger1 )
{
 $trigger1 volumedamage 1000
}
else
{
wait 1
}

Posted: Sun Jul 03, 2005 9:13 am
by Master-Of-Fungus-Foo-D
no lizards code is right execept for that typo ;)

land sharking

Posted: Sun Jul 03, 2005 1:12 pm
by tltrude
Are you trying to prevent "Land Sharking"? Just place a player clip brush (below ground) under each ladder.

Posted: Mon Jul 04, 2005 11:26 am
by Splaetos
*knock Knock*

'who is it?'

~"avon calling!'

'No thanks'


*knock Knock*

'who is it?'

~'Pizza Delivery!'

'We didnt order one... sorry'


*knock Knock*

'who is it?'

~'LandShark!'

'oh ok coming.... arggggggggggghhhhhhhhhhhhhh....'


>.<
My apologies...
I jsut worked all night for like the 18th night in 20 days.

Posted: Mon Jul 04, 2005 1:29 pm
by Master-Of-Fungus-Foo-D
he wants the minefield to not go off whe you are touching trigger1 and trigger 2 at the same time (overlapping portion)

i dont think this has anything to do with landsharking :?

uhm yes lizards code is right for that....