Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 08-07-2008, 10:48 PM   #1
Nuk3m
Banned
 
Join Date: Mar 2007
Location: New Jersey, USA!
Class/Position: Scout / Offense
Gametype: Capture the Flag
Affiliations: :e0: Founder
Posts Rated Helpful 0 Times
Send a message via AIM to Nuk3m
team specific triggers.

trigger_ff_script's with names
red_trigger
blue_trigger

what would be the LUA to make them team specific?

edit: i found out how to do it kindof

what i need now is a way to make it so only one can be active at a time, so if blue is in the control zone, red cant. when blue is in the area, blue lights turn on, when red is in the area, red lights turn on. when both are in the area the lights are purple. i want to make it so only the occupying teams lights / points are working. this way both teams arent gaining points and this way the lights arent turning purple.

Last edited by Nuk3m; 08-07-2008 at 11:34 PM.
Nuk3m is offline   Reply With Quote


Old 08-12-2008, 09:35 AM   #2
stino
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
try using normal entity logic
those triggers have onstarttouch and onendtouchall
but problem is that onendtouchall doesnt always register.

maybe you can use lua to check where every player is and if a player is inside an trigger (touching..) then set the var for that team to true.

then set a little if
if redinzone AND !blueinzoe then
set red lights on
set blue lights off
else if blueinzone and !redinzone then
set blue lights on
set red lights off
else
set blue lights off
set red lights off
end
stino is offline   Reply With Quote


Old 08-12-2008, 03:29 PM   #3
Nuk3m
Banned
 
Join Date: Mar 2007
Location: New Jersey, USA!
Class/Position: Scout / Offense
Gametype: Capture the Flag
Affiliations: :e0: Founder
Posts Rated Helpful 0 Times
Send a message via AIM to Nuk3m
thats if u want to teach me lua code lol... i dont know what u just said.
Nuk3m is offline   Reply With Quote


Old 08-12-2008, 09:18 PM   #4
Pixel
if(0>1){printf("broked");}
Beta Tester
 
Pixel's Avatar
 
Join Date: Mar 2007
Location: Amerika
Class/Position: O
Posts Rated Helpful 3 Times
Quote:
so if blue is in the control zone
how does it determine "if blue is in the control zone"
Pixel is offline   Reply With Quote


Old 08-13-2008, 03:04 AM   #5
Nezumi
Retired FF Staff
 
Nezumi's Avatar
 
Join Date: Mar 2007
Location: The Peoples Republic of Harmfull Free Radicals.
Class/Position: Soldier, O
Gametype: Doubble Mode
Affiliations: Cassiotone Nation
Posts Rated Helpful 1 Times
Have the red trigger give these outputs:
onStartTouch > blue_trigger > disable
onEndTouchAll > blue_trigger > enable
onStartTouch > red_lights > enable/turn on/trigger/whatever

And give the blue trigger the same outputs, but have them target red_trigger and blue_lights (or whatever you've named your lights).

Then have both triggers send outputs to the lights with the onStartTouch input.
__________________
TG: pretty much you have no idea how much i fuckin own at this game.
TG: i bested no less than three flaming tornados and broke a huge wizard.
Nezumi is offline   Reply With Quote


Old 08-13-2008, 03:26 AM   #6
Nuk3m
Banned
 
Join Date: Mar 2007
Location: New Jersey, USA!
Class/Position: Scout / Offense
Gametype: Capture the Flag
Affiliations: :e0: Founder
Posts Rated Helpful 0 Times
Send a message via AIM to Nuk3m
yeah but what if both are active? wont that in turn disable them both? or no?
Nuk3m is offline   Reply With Quote


Old 08-14-2008, 01:18 AM   #7
Nezumi
Retired FF Staff
 
Nezumi's Avatar
 
Join Date: Mar 2007
Location: The Peoples Republic of Harmfull Free Radicals.
Class/Position: Soldier, O
Gametype: Doubble Mode
Affiliations: Cassiotone Nation
Posts Rated Helpful 1 Times
If they're team specific already through the LUA (like only blue team members can trigger the blue one) then no.
__________________
TG: pretty much you have no idea how much i fuckin own at this game.
TG: i bested no less than three flaming tornados and broke a huge wizard.
Nezumi is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:45 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.