Discussion in 'Mapping Questions & Discussion' started by Jsd, May 20, 2017.
how do you make lasers shot a litlle after a koth control point is captured?
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.
I just love doing crutches for no reason while doing no research on the subject, don't I?
env_laser is your answer! You can have it fire at single or multiple func_brush targets. This is how Crash did it in trainsawlaser.
But how do I make it fire after the point is captured?
Looks like there is a "TurnOn" input. That might be useful.
I'll play around with that when im at my computer
huh I cant figure how to do it
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
OnCapTeam 1/2 (RED or BLU)-> Turn On, presumably.
it dosent let me have OnCapteam in the outputs
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.
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
but how do i make it fire?
Here's an article on Inputs and Outputs that might be worth a read: https://developer.valvesoftware.com/wiki/Inputs_and_Outputs
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
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"
Separate names with a comma.