Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Objects are frozen for a frame after onLoad() #24

Open
omniraptorr opened this issue Jun 9, 2020 · 0 comments
Open

Objects are frozen for a frame after onLoad() #24

omniraptorr opened this issue Jun 9, 2020 · 0 comments
Labels
bug Something isn't working lua Lua scripting

Comments

@omniraptorr
Copy link

omniraptorr commented Jun 9, 2020

To Reproduce
Steps to reproduce the behavior:
after this call the object stays still even though it should start moving: spawnObjectJSON({json = myJSON, callback_function = function(obj) obj.setVelocity({0,5,6}) end)

Tabletop Simulator Info (please complete the following information):

  • Version 12.4.3

Known workarounds

If you wait a frame, it moves as expected. spawnObjectJSON({json = myJSON, callback_function = function(obj) Wait.frames(function() obj.setVelocity({0,5,6}) end , 1)

@omniraptorr omniraptorr added bug Something isn't working lua Lua scripting labels Jun 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working lua Lua scripting
Projects
None yet
Development

No branches or pull requests

1 participant