Make things hurt players?

Algebraic

L1: Registered
Jul 18, 2010
34
2
Alright i have a question. How would i go about making it so a env_laser would randomly pick players and deal damage to them? Or how to make a point_tesla deal damage to players that it would strike randomly? So i guess my main question is how to make entities deal damage to players, and how to make it so the players are chosen randomly or for another reason.
Thanks in advance, i'm new to mapping and trying to figure everything out.
 

Penguin

Clinically Diagnosed with Small Mapper's Syndrome
aa
May 21, 2009
2,039
1,484
env_beam.

There are several "random strike" parameters dor that entity.
 

Algebraic

L1: Registered
Jul 18, 2010
34
2
Thanks, that solves the laser problem. But i also want to know how to make any entity for example, point_tesla to deal damage to players. Is there an output or something that references a player?

Also, why i am here, anyone know a way i would go about making a sort of health bar for a brush? I assume it would have something to do with a func_breakable, and maybe some math counters, but what i want to do is make it so i have a brush (brush A), that when you shoot it another brush gets smaller (brush B), making a sort of health bar feature for that brush (brush A).