Co_Op trigger
Quote from baca25 on June 25, 2011, 9:12 amI have spent all night trying to figure out how to get a trigger to activate when both players touch the trigger, and do whatever action I want them to do. So for instance, when both players touch the area where I want this trigger, I want a moveable panel to start its animation; however, I do not want that animation to start if only one player is at that area. I also don't want, when one player gets to that area and then leaves, then the other player goes to that area and activates the trigger. I have tried many different ways, and have stared at other puzzles and instances that the game made, and have looked on multiple forums, but I cannot figure this on out.
I have spent all night trying to figure out how to get a trigger to activate when both players touch the trigger, and do whatever action I want them to do. So for instance, when both players touch the area where I want this trigger, I want a moveable panel to start its animation; however, I do not want that animation to start if only one player is at that area. I also don't want, when one player gets to that area and then leaves, then the other player goes to that area and activates the trigger. I have tried many different ways, and have stared at other puzzles and instances that the game made, and have looked on multiple forums, but I cannot figure this on out.
Mapping Since May 21, 2011
Quote from Darkylight on June 25, 2011, 9:57 am._., XD, all night.
Make a trigger_playerteam and one math_counter, when player blue touch trigger, math_counter add 1, if he end touch, subrast 1, same for the orange, and in math counter put maxhit for 2, now, the output is "Onhitmax" do what you want.
._., XD, all night.
Make a trigger_playerteam and one math_counter, when player blue touch trigger, math_counter add 1, if he end touch, subrast 1, same for the orange, and in math counter put maxhit for 2, now, the output is "Onhitmax" do what you want.
Quote from Marlovious on June 25, 2011, 10:20 amI believe you want to use a logic_coop_manager and trigger_playerteam. Look at the "instances/coop/coop_team_double_exit_door.vmf" instance to see how it works.
I believe you want to use a logic_coop_manager and trigger_playerteam. Look at the "instances/coop/coop_team_double_exit_door.vmf" instance to see how it works.
Quote from baca25 on June 26, 2011, 6:31 amDarkylight wrote:._., XD, all night.Make a trigger_playerteam and one math_counter, when player blue touch trigger, math_counter add 1, if he end touch, subrast 1, same for the orange, and in math counter put maxhit for 2, now, the output is "Onhitmax" do what you want.
Well, thank you. Works great. I don't like it when something so simple caused me so much pain.
Make a trigger_playerteam and one math_counter, when player blue touch trigger, math_counter add 1, if he end touch, subrast 1, same for the orange, and in math counter put maxhit for 2, now, the output is "Onhitmax" do what you want.
Well, thank you. Works great. I don't like it when something so simple caused me so much pain.
Mapping Since May 21, 2011

Quote from ChickenMobile on June 26, 2011, 7:53 amMarlovious wrote:I believe you want to use a logic_coop_manager and trigger_playerteam. Look at the "instances/coop/coop_team_double_exit_door.vmf" instance to see how it works.This is the better solution. The logic_coop_manager is made especially for firing outputs when both players touch a trigger etc.
This is the better solution. The logic_coop_manager is made especially for firing outputs when both players touch a trigger etc.
Quote from Darkylight on June 26, 2011, 9:00 amchickenmobile wrote:Marlovious wrote:I believe you want to use a logic_coop_manager and trigger_playerteam. Look at the "instances/coop/coop_team_double_exit_door.vmf" instance to see how it works.This is the better solution. The logic_coop_manager is made especially for firing outputs when both players touch a trigger etc.
Yep, math_counter is simillar but for 1 or more conditions.
This is the better solution. The logic_coop_manager is made especially for firing outputs when both players touch a trigger etc.
Yep, math_counter is simillar but for 1 or more conditions.
Quote from Vordwann on June 26, 2011, 9:42 amSolarChronus did a good tutorial on one chain and multiple chain uses of the Co-op manager here: http://www.youtube.com/watch?v=lOUav5ipkyU
SolarChronus did a good tutorial on one chain and multiple chain uses of the Co-op manager here: http://www.youtube.com/watch?v=lOUav5ipkyU
[spoiler][SP] Alternate[/spoiler]