Veka... I am trying to get a working example for this. Is either of the locations correct? And per a previous post you made, I assume I can use v.player_id in the entity filter in the BP file?
{
"format_version": "1.10.0",
"animation_controllers": {
"controller.animation.new_player_query": {
"initial_state": "default",
"states": {
"default": {
"transitions": [{"is_new": "!(q.scoreboard('player_ids')>0)"}],
"on_exit": [
"/scoreboard objectives add player_ids dummy",
"/scoreboard players add counter player_ids 0",
"/scoreboard players add @a player_ids 0"
]
},
/*
Should only do this ONCE ever
*/
"is_new": {
"on_entry": [
"/scoreboard players add counter player_ids 1",
"/scoreboard players operation @s player_ids = counter player_ids"
],
//Do I do the variable here
"transitions": [{"default": "v.player_id = q.scoreboard('player_ids'); return v.player_id>0"}],
"on_exit": [
"/titleraw @s title {\"rawtext\":[{\"text\":\"§aYour Player ID is \"},{\"score\":{\"name\":\"@s\",\"objective\":\"player_ids\"}}]}",
//Or here?
"v.player_id = q.scoreboard('player_ids');"
]
}
}
}
}
}