trigger in a trigger

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

trigger in a trigger

Post 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 ?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Last edited by lizardkid on Sun Jul 03, 2005 5:17 pm, edited 1 time in total.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

You're checking 2 times if the player's touching the very same trigger, Lizard. :?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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
}
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

no lizards code is right execept for that typo ;)
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

land sharking

Post by tltrude »

Are you trying to prevent "Land Sharking"? Just place a player clip brush (below ground) under each ladder.
Tom Trude,

Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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.
When I am king, you will be first against the wall~
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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....
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Post Reply