#hit detection problem for projectile

1 messages · Page 1 of 1 (latest)

austere flower
#

First of all if you're just trying to detect a projectile hitting an entity you don't need to use entity die just use projectile hit entity

Secondly in your if statement instead of doing bullets dot includes do projectile.type Id. includes then bullets as I have found that now works and the other way doesn't for some reason secondly don't use run command use the built-in API method Which can be found here https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/screendisplay?view=minecraft-bedrock-stable @vital raft

Contents of the @minecraft/server.ScreenDisplay class.

austere flower
#

If you need further help let me know and I can talk you through in a VC if you want @vital raft

austere flower
# vital raft im tryna get hit and death

Ok maybe you should change the name of your post then because you made it out like you just wanted the hit indication rather than the hit and death indication so you can leave the dead entity

vital raft
austere flower
# vital raft im tryna get hit and death

Also another thing this wouldn't be counted as beta API since this is all stable it would only be counted as beta if you were using a beta method within the code which it doesn't seem like you are

austere flower
# vital raft i do, beta 2.3.0

That's not what I meant I meant if you were using an actual beta method meaning inside the code you were using something that's still in beta then it would be counted as beta at the moment since you're not using anything in beta it's still stable

austere flower
# vital raft i do, beta 2.3.0

Just because you've got it marked as beta in the manifest doesn't really mean you're using beta things at the moment in your code if you get what I mean

vital raft
austere flower
vital raft
austere flower
#

If you're done with this post then please mark it as resolved so that people know it's been dealt with that's only if you're done with it though

vital raft