help with lasers

Jsd

L3: Member
May 1, 2017
101
15
how do you make lasers shot a litlle after a koth control point is captured?
 

PenolAkushari

Never Played MvM
Apr 28, 2017
51
26
You saw that in the koth_trainsawlaser, right?
I didn't tried that out myself, though I might speculate that it was some laser particle and series of triggers that hurt people being activated for some time after point was captured.

Pardon for crude response, though if you didn't understand what I meant, then someone else might explain that, or maybe I'll actually try saying it more clear.

EDIT:

I just love doing crutches for no reason while doing no research on the subject, don't I?
 
Last edited:

henke37

aa
Sep 23, 2011
2,075
515
Looks like there is a "TurnOn" input. That might be useful.
 

Diva Dan

hello!
aa
Mar 20, 2016
1,024
1,951
A control point (the entity that looks like the hologram) sends an output whenever a team captures it. Something like onCapture. Make it so when it's captured, it sends an output to the env_laser to turnOn. I'll get on my PC and do some more research
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
OnCapTeam 1/2 (RED or BLU)-> Turn On, presumably.
 

Tumby

aa
May 12, 2013
1,084
1,192
It is important to select the right entity. The controlpoint (the hologram) and the capture area (the trigger brush) both can have outputs, but I always forget which one to use. One of them should have outputs already, for example to change the skin of the controlpoint base model.
Make sure to also give your env_laser a name and a target (with a name). From there on it's just
[OnSomeEvent] -> [laser] -> TurnOn -> [any desired delay, probably 0.0]

Also check out the env_beam entity. It is very similar to the laser but still has some different properties.
 

Tumby

aa
May 12, 2013
1,084
1,192
Doublepost time.
I checked the entities and both, the trigger_capture_area and the team_control_point have outputs for OnCapTeam1 and OnCapTeam2. So you must be doing something very wrong if you can't find these outputs. Did you make sure to click "add" to, well, add an output?
Considering you probably want it to fire regardless of which team captured the point, use OnEndCap.
 

Jsd

L3: Member
May 1, 2017
101
15
Doublepost time.
I checked the entities and both, the trigger_capture_area and the team_control_point have outputs for OnCapTeam1 and OnCapTeam2. So you must be doing something very wrong if you can't find these outputs. Did you make sure to click "add" to, well, add an output?
Considering you probably want it to fire regardless of which team captured the point, use OnEndCap.
i think i figured it out will say if
 

Jsd

L3: Member
May 1, 2017
101
15
Doublepost time.
I checked the entities and both, the trigger_capture_area and the team_control_point have outputs for OnCapTeam1 and OnCapTeam2. So you must be doing something very wrong if you can't find these outputs. Did you make sure to click "add" to, well, add an output?
Considering you probably want it to fire regardless of which team captured the point, use OnEndCap.
but how do i make it fire?
 

RodionJenga

L5: Dapper Member
Oct 24, 2015
236
256
Make sure your env_laser is named. Then, go to your team_control_point and go to the outputs tab. Click the "Add..." button.

My output named: OnCap Team1 (OnOwnerChangedTo Team1 also works)
Targets entities named: WhateverYouNamedYourEnvLaser
Via this input: TurnOn
After a delay in second of: However long after cap you want the laser to go off

Hit enter and then add another output for Team2, then another two to turn the lasers off (TurnOff) a few seconds after your delay.
 

Jsd

L3: Member
May 1, 2017
101
15
Make sure your env_laser is named. Then, go to your team_control_point and go to the outputs tab. Click the "Add..." button.

My output named: OnCap Team1 (OnOwnerChangedTo Team1 also works)
Targets entities named: WhateverYouNamedYourEnvLaser
Via this input: TurnOn
After a delay in second of: However long after cap you want the laser to go off

Hit enter and then add another output for Team2, then another two to turn the lasers off (TurnOff) a few seconds after your delay.
but there is no opsion for TurnOn it just becomes red text
 
Mar 23, 2013
1,013
347
it just becomes red text

Thats because the target is invalid. What did you use as target entity? It has to be the name of the env_laser. So name the laser "lazzor" (or whatever you want) and then put the name "lazzor" at targeted entity. Then when you configure the output, it will suggest all possible intputs for the targeted entity. Select the one you want, in this case "turn on"