#why is this happening

1 messages · Page 1 of 1 (latest)

wispy nymph
#

soo, i have a script that save a lot of values to some variables
the script work fine but when i try making a function to reset all of them
the script start acting wired
for example:
i am saving the player positions in loc_rot[0]
when i start replying his movement he start teleport randomly
any idea what causing this? and any suggestions?

sand trout
#

@wispy nymph how do u reset it?

wispy nymph
sand trout
#

it's like propelled based on head rotation instead of body rot

#

or the numbers were multiplied 2x

wispy nymph
#

i am just saving player positions

sand trout
#

test it again about 100 from 0 0

wispy nymph
sand trout
#

yep, test it there

#

yk u can send the whole code if u dont mind, that is

wispy nymph
calm harness
wispy nymph
#

maybe when i rewrite it to use simulated player

wispy nymph
novel locust
#

These replay ideas are fire 🔥

wispy nymph
wispy rover
wispy nymph
#

this is not a showcase
pls help 😂

cursive moth
wispy nymph
cursive moth
#

an unofficial scripting/moding api for android existed before official scripting api came in to scene

wispy nymph
#

Nice

wispy nymph
#

ok
so the problem is in the saving part
either the game is lagging and giving the wrong player location or ... idk

wispy nymph
#

yeah that what happening
player path before reset is in the inside
the other one after reset
i tried walking in a circle

#

any idea @sand trout ?
using this t test

const loc = player.location            player.dimension.getBlock(loc).below().setType("stone")
wispy nymph
sand trout
#

Looks lile there's extra location that's doin sth

sand trout
maiden knot
wispy nymph
#

tnx

cursive moth
#

i still cant understand

#

issue

sand trout
#

does /camera affect player's location overtime?

cursive moth
#

camera has nothing to do with player location

sand trout
#

its jet lag

#

sort of

#

lmao

cursive moth
#

whats issue tho ?

sand trout
#

after recording one run, the location saved becomes adjusted

#

even tho cache has been cleared

cursive moth
#

is that fake player ?

#

pretty sure logic issue

wispy nymph
cursive moth
sand trout
#

just tp every tick