• Hey! Register here to create your account, engage with the community, and talk about what is new!

How to tell when a projectile lands

pixlii

Forum adept
Overlord
Joined
May 20, 2021
Messages
215
Reaction score
34
Basically, I want a process to occur whenever a projectile lands on a player or hits a block. Is there any easy way to tell this?

and i call myself an experienced coder lmao
 
Solution
projectile hit event occurs when it hits the ground and when it hits a player, you can try to merge it with Prohectile Damage Player event to check if it didn't hit a player (maybe give it a variable (not a tag) on Projectile Damage Player event and wait 0 ticks on the projectile hit, if the variable is 1 then it hit a player, after you check, don't forget to use Set Variable Purge so you don't have useless variables, also, the variable should be %uuid not %projectile cuz name overlap ;-;)

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,226
Reaction score
347
projectile hit event occurs when it hits the ground and when it hits a player, you can try to merge it with Prohectile Damage Player event to check if it didn't hit a player (maybe give it a variable (not a tag) on Projectile Damage Player event and wait 0 ticks on the projectile hit, if the variable is 1 then it hit a player, after you check, don't forget to use Set Variable Purge so you don't have useless variables, also, the variable should be %uuid not %projectile cuz name overlap ;-;)
 
Solution
Top Bottom