GithubHelp home page GithubHelp logo

Comments (10)

Vulcano771 avatar Vulcano771 commented on July 28, 2024

https://discord.com/channels/135877399391764480/138027100593455104/1208917960954216478

There's the context the people on discord think i'm dumb thatswhy I wrote the thing at the end, sorry

from skript.

Vulcano771 avatar Vulcano771 commented on July 28, 2024

error occurs too when using global vars

e.g.:

local function test(p: player) :: boolean:
    loop {players::*}:
        teleport loop-value to {loc}
    
    return true
    ```

from skript.

Vulcano771 avatar Vulcano771 commented on July 28, 2024

It can be fixed by:

local function tpPlayer(p: player):
    teleport {_p} to {loc}

local function test(p: player) :: boolean:
    loop {players::*}:
        tpPlayer(loop-value)
    
    return true
    ```

from skript.

Vulcano771 avatar Vulcano771 commented on July 28, 2024

but thats kinda not nice thatswhy I opened this bug report

from skript.

AyhamAl-Ali avatar AyhamAl-Ali commented on July 28, 2024

Please provide the proper details of your /sk info as requested in the issue report form. Also, test without any addons and let us know if that issue persists.

from skript.

Vulcano771 avatar Vulcano771 commented on July 28, 2024

People say I need to use non local (https://discord.com/channels/135877399391764480/138027100593455104/1208922964641325079) but same issue

function test(p: player) :: boolean:
    set {_players::*} to {_p}
    loop {_players::*}:
        teleport loop-value to {loc}
    
    return true

from skript.

Pikachu920 avatar Pikachu920 commented on July 28, 2024

on paperspigot, the teleport effect runs delayed and function returns can't occur after a delay. you can use force teleport loop-value to {loc} to avoid this, but do keep in mind this will cause lag if the chunk you are teleporting to needs to be loaded/generated. @Vulcano771 confirmed on discord they are running paper

from skript.

Vulcano771 avatar Vulcano771 commented on July 28, 2024

Yep, that fixes it, bug can be closed ^^

from skript.

Vulcano771 avatar Vulcano771 commented on July 28, 2024

i do it with the other function workarround

from skript.

Vulcano771 avatar Vulcano771 commented on July 28, 2024

Oh Pika/Ayham what is that workarround then doing? #6444 (comment)

is that then forcing or just moving it to another thread or is skript just ignoring the delay there?

from skript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.