French_bread_gud
New member
- Joined
- Aug 21, 2021
- Messages
- 3
- Reaction score
- 0
I am trying to do a simple ray attack where the player can shoot a beam that deals damage to other players upon colliding with them, how can I do that?
Select Object, Players by Condition, If Player Name Equals, NOT, "%default"I did that, but now the player takes damage upon casting the ray as well, I will attach some images of the code:
View attachment 924View attachment 925
View attachment 926
View attachment 927
View attachment 928
View attachment 929
I tried having the ray start 1.5 blocks forward from the player eye location, but that did not work as well.
I did that, but now the player takes damage upon casting the ray as well, I will attach some images of the code:I'm pretty sure there's a Select Object (purpur block) which allows you to select entities that intersect a raycast.
Select Object, Players by Condition, If Player Name Equals, NOT, "%default"I did that, but now the player takes damage upon casting the ray as well, I will attach some images of the code:
View attachment 924View attachment 925
View attachment 926
View attachment 927
View attachment 928
View attachment 929
I tried having the ray start 1.5 blocks forward from the player eye location, but that did not work as well.