Trigger problem on map

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
JoeDZ
Private
Posts: 8
Joined: Mon Feb 16, 2004 6:43 pm

Trigger problem on map

Post by JoeDZ »

In my current map I have a large tent set up so that when you go inside you can't get out until you have located and set off a certain sequence of triggers. The opening of the tent had a caulk wall to prvent players from getting out, so i have a teleport trigger on the outside of it to transport them inside.

My problem is that the teleport triggers calls on a thread that is supposed to disable all inside triggers except the first one. The threads get called b/c I have a iprintln in them for testing purposes, only thing is the triggers are not disabled.

I have the triggers set up in the map properly and they are calling the threads. I've tried to call methods:

setthread /maps/dm/tentseq.scr::tent1

and

setthread /maps/dm/tentseq.scr::tent1 $tent_trigger $leave_tent $tent_hurt1...

Below is the test script I am using.... Any help would be greatly appreciated :). Been at this for days and it's one of the major things keeping me from doing my final compile.
// tent_enter
tent1:
self waittill trigger
iprintln ("running tent 1")
$tent_trigger triggerable // First inside trigger
$leave_tent nottriggerable // disable remaining triggers
$tent_hurt1 nottriggerable
$tent_hurt2 nottriggerable
$tent_hurt3 nottriggerable
$tent_hurt4 nottriggerable
$tent_hurt5 nottriggerable
$tent_hurt6 nottriggerable
iprintln ("running tent 1 end")
end

// tent_trigger
tent2:
self waittill trigger
iprintln ("running tent 2")
$tent_hurt3 triggerable // enable next trigger
$tent_trigger nottriggerable // disable last trigger
end

// tent_hurt3
tent3:
self waittill trigger
iprintln ("running tent 3")
$tent_hurt2 triggerable
$tent_hurt3 nottriggerable
end

// tent_hurt2
tent4:
self waittill trigger
iprintln ("running tent 4")
$tent_hurt5 triggerable
$tent_hurt2 nottriggerable
end
// tent_hurt5
tent5:
self waittill trigger
iprintln ("running tent 5")
$tent_hurt1 triggerable
$tent_hurt5 nottriggerable
end

// tent_hurt1
tent6:
self waittill trigger
iprintln ("running tent 6")
$tent_hurt6 triggerable
$tent_hurt3 nottriggerable
end

// tent_hurt6
tent7:
self waittill trigger
iprintln ("running tent 7")
$leave_tent triggerable
$tent_hurt6 nottriggerable
wait 5 // set timer on finding exit trigger
$leave_tent nottriggerable
$tent_hurt4 triggerable
end

// tent_hurt4
tent8:
self waittill trigger
iprintln ("running tent 8")
$tent_hurt3 triggerable
$tent_hurt4 nottriggerable
end
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Why should the first teleport trigger disable all the other triggers?

Create a "tent_prepare" script in your level script that will disable them.

So in main you would have
thread tent_prepare
then after "end" of main:
tent_prepare:

$leave_tent nottriggerable
$tent_hurt1 nottriggerable
$tent_hurt2 nottriggerable
$tent_hurt3 nottriggerable
$tent_hurt4 nottriggerable
$tent_hurt5 nottriggerable
$tent_hurt6 nottriggerable

end


Now you can activate each trigger as needed with $tent_hurtX triggerable in the appropriate place.
Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

this might be alittle offtopic but i want 2 make a tent 2,but i can find a suitable texture.what did u use?
Image
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Try Static--->Furniture--->Tent after
right-click in the 2D view. :wink:
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

global

Post by tltrude »

You can also move the script to main/global.

setthread global/tentseq.scr::tent1

Although, your location will work too, it may not be good to have extra scripts in the dm folder.

The "trigger_hurt" doesn't work, by the way! At least I have never heard of anyone getting it to work. Might be better to use "volumedamage" with trigger_multiples.
Tom Trude,

Image
JoeDZ
Private
Posts: 8
Joined: Mon Feb 16, 2004 6:43 pm

Post by JoeDZ »

Thanks Crunch, worked fine after that, though I also had to add in a trigger_multiple b4 the teleport trigger to reset everything after it's been used. Apparently the teleportthread command in the teleport trigger doesn't work for me,,, who knew LOL


Also, the trigger_hurt works fine for me, set a key/value of damage/5, works quite nicely.

now I'm running into telefrag kills lol, but that's liveable LOL.
Post Reply