08-07-2008, 11:48 PM | #1 |
Banned
|
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-08-2008 at 12:34 AM. |
|
08-12-2008, 10:35 AM | #2 |
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 |
|
08-12-2008, 04:29 PM | #3 |
Banned
|
thats if u want to teach me lua code lol... i dont know what u just said.
|
|
08-12-2008, 10:18 PM | #4 | |
if(0>1){printf("broked");}
Beta Tester
Join Date: Mar 2007
Location: Amerika
Class/Position: O Posts Rated Helpful 3 Times
|
Quote:
|
|
|
08-13-2008, 04:04 AM | #5 |
Retired FF Staff
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. |
|
08-13-2008, 04:26 AM | #6 |
Banned
|
yeah but what if both are active? wont that in turn disable them both? or no?
|
|
08-14-2008, 02:18 AM | #7 |
Retired FF Staff
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. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|