Beam weapon Damage

I’m trying to make a beam weapon out of effects
I got help with the visual part of it, now I just can’t get how to damage players within those effects.
I tried ray cast hit player, ray cast hit position, filtered arrays
Nothing seems to work
How it works is that
Each effect is at a position multiplied from the eye position and facing direction of the player, set inside of an array in a variable
it’s about 10 of them
When the player is using their beam, the arrays are set to the above
when the player isn’t, they’re set to a vector, with x y z at -1000000

1 Like

Do you want it to hit 1 player or more?

Any players within it on opposite team
it’s supposed to be a plasma beam

Make a rule for all of the players that has in the condition is true for any, the array will be the array with all the vectors of the effects, make the condition be true if distance between the current array element and event is smaller than the radius of the effects, the actions make a loop that hasstart damage over time on the player (you can add a burning effect or something if you want) for a small amount of time, i would recommend about 0.05 seconds or more if it’s lagging it, after that make a wait with the same amount of time and loop if the condition is true.

Okay thank you, I’ll try this later