#Occasional flickering of true when result is supposed to always be false if conditions are right

22 messages · Page 1 of 1 (latest)

modern minnow
#

I got it to mostly work, but after the animation has ended it doesn't immediately start again, returning false for one tick, when it returns true every other tick.
How would I make it always true when the player is running?

dawn stagBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

foggy coralBOT
#

Paste version of animation_server.js, animation_client.js from @modern minnow

modern minnow
#

i'll send a video in a second

amber token
#

isnt it enough to check for sprint and not crouch

#

isnt it redundant as you cant sprint while crouching

modern minnow
#

i did that because if you're sprinting already and you hold crouch it will still count as sprinting

amber token
#
onEvent('player.tick', event => {
    let id = event.player.id
    event.player.sendData('running_animation', { animation: 'kubejs:running', player: id.toString(), isRunning: event.player.isSprinting() })
})
#

=.=

modern minnow
modern minnow
amber token
#

but wait normally while sprinting if you suddenly hold crouch, you stop sprinting, right?

modern minnow
#

no

amber token
#

wha

#

im confuffled

modern minnow
modern minnow
#

hold on, i'm trying to launch the pack so i can record it

modern minnow
modern minnow
#

Occasional flickering of true when result is supposed to always be false if conditions are right

modern minnow
#

it was a problem with the animation JSON, fixed