Hello! I'm new to scripting using Typescript in the desktop editor and
I've run into a problem that I haven't quite been able to solve. I saw
code snippets and suggestions about using world.getLocalPlayer() but
it's not quite working for me. When I c...
Here we go! World link: Javi's Weekly Creator Challenge 3 World This was
fun! I liked learning a bit more about TypeScript and how to use it, it
still looks "weird" to me compared to other languages I've used but I'm
slowly getting more used to it an...
I've now been able to test your code and it works great! Comparing it to
a version that runs on the server it's much more smooth as well, though
from what I can gather I'll try to avoid locally run scripts in the
future. Thanks a bunch though, in the...
Thanks! I've been alternating between reading documentation and messing
around, but this does sound like something where it'll help to take a
look first. I guess I was misled by the code snippets I found since
those made it look so easy and straightf...
That doesn't seem to be working, sorry. Moving the [private
activePlayer: Player | undefined;] inside the class helps, but then you
get an error later as it can't find player to get its position.
Okay! So the suggested method to get the local player would be to use an
event in a locally run script? That can work, but it also feels like a
bit of a workaround (and it would mean the documentation is at best
imprecise if it's saying that we shoul...