#How can i make a tag only remain for a second after player getting hurt
1 messages · Page 1 of 1 (latest)
use system.runTimeout to take away the tag after 20 ticks.
hmm
system.runTimeout(() => {
const p = world.getAllPlayers();
p.forEach(player => {
player.removeTag('back');
});
},20);```
like that?
@lost falcon (srry for ping)
that's not how I would've done it, but yeah, should work.
Yeah but it works for all the players
Just specify the player that taked the damage
And that s all
By putting it in the event itself
how would you do it ?
What event u use ?
right he wants it in the entityHitEntity or entityHurt
bruh i know how to use entityHurt
and he should get rid of the getting all players and just get the entity from the event
just tell me abt the runTimeout()
hmmm
how?
Then use :
entityHit instead of world.allPlayer()
^