Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit from cab #2

Open
zek0 opened this issue Sep 14, 2019 · 3 comments
Open

Exit from cab #2

zek0 opened this issue Sep 14, 2019 · 3 comments

Comments

@zek0
Copy link

zek0 commented Sep 14, 2019

Hello! In OneSync the isssue with exit from cab in last station. Infinite attached to entity. It is possible fix this.

Thank you for script.

@ArMaTeC
Copy link

ArMaTeC commented Sep 19, 2019

yep same issue

@phiomet
Copy link

phiomet commented Aug 22, 2020

I change the cablecar.state from ‘IDLE’ to ‘MOVE_TO_IDLE_BOTTOM’
Line 360.

 -- Check if we've reached the bottom again
            if cablecar.gradient <= 1 then
                -- Set to raw idle to do nothing and ask the server to sync cars
                cablecar.state = "MOVE_TO_IDLE_BOTTOM"
                cablecar.gradient_distance = 0.0 
				TriggerServerEvent("omni:cablecar:host:sync", cablecar.index, "IDLE_BOTTOM")
                return
            end

@SlugTeamSix
Copy link

I change the cablecar.state from ‘IDLE’ to ‘MOVE_TO_IDLE_BOTTOM’
Line 360.

 -- Check if we've reached the bottom again
            if cablecar.gradient <= 1 then
                -- Set to raw idle to do nothing and ask the server to sync cars
                cablecar.state = "MOVE_TO_IDLE_BOTTOM"
                cablecar.gradient_distance = 0.0 
				TriggerServerEvent("omni:cablecar:host:sync", cablecar.index, "IDLE_BOTTOM")
                return
            end

this worked, thank you for posting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants