#Do you know what the query is for when you attack an entity and a player? for animation controller
1 messages · Page 1 of 1 (latest)
There's no direct query for attacking. In resource packs, you can use variable.attack_time. but iirc, that's not available in behavior packs
I'd recommend using a script instead
what would you do with a script to trigger an event?
Use entity.triggerEvent. docs on it are here: https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/entity?view=minecraft-bedrock-stable#triggerevent
my question was: how would you use scripts to detect that a player is atatcking without the variable.attack_time?
You can't, unless you meant hitting an entity or a block
since there are events for that