Trigger detect pass
Moderator: Moderators
Trigger detect pass
I need make a trigger that detects the step of the axis as how The Hunt at the allieds 
- Deutsche Dogge
- First Lieutenant
- Posts: 183
- Joined: Wed May 07, 2003 11:50 pm
- Location: Quebec
- Contact:
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
Create a trigger_once with a key of setthread and a value of axis_arrived.
Now, in your mapscript, call the following thread. Copy and paste the thread into your mapscript.
This uses the same thing as the Allied trigger on the Hunt. You can call the thread what you want, but I just used axis_arrived as an example.
Now, in your mapscript, call the following thread. Copy and paste the thread into your mapscript.
Code: Select all
axis_arrived:
local.player = parm.other
if(local.player.dmteam == "axis")
{
iprintlnbold "The Axis have breached the perimeter!"
}
end-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
- Deutsche Dogge
- First Lieutenant
- Posts: 183
- Joined: Wed May 07, 2003 11:50 pm
- Location: Quebec
- Contact:
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
Okay then just change to a trig multiple and make your script like this:
Code: Select all
axis_arrived:
if (level.axisbreached != 1 )
level.axisbreached = 1
local.player = parm.other
if(local.player.dmteam == "axis")
{
iprintlnbold "The Axis have breached the perimeter!"
}
end- Deutsche Dogge
- First Lieutenant
- Posts: 183
- Joined: Wed May 07, 2003 11:50 pm
- Location: Quebec
- Contact:
Wrong, if the trigger can be activated only once, any player will trigger it as the trigger itself doesn,t check the dmteam of the player. So i guess a trigger_multiple should be used with this code:Master-Of-Fungus-Foo-D wrote:Okay then just change to a trig multiple and make your script like this:Code: Select all
axis_arrived: if (level.axisbreached != 1 ) level.axisbreached = 1 local.player = parm.other if(local.player.dmteam == "axis") { iprintlnbold "The Axis have breached the perimeter!" } end
Code: Select all
axis_arrived:
if(level.axisbreached != 1 )
{
local.player = parm.other
if(local.player.dmteam == "axis")
{
level.axisbreached = 1
iprintlnbold "The Axis have breached the perimeter!"
}
}
end


