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

Reset car to a specific location #1

Open
Fetzii opened this issue Jun 24, 2023 · 0 comments
Open

Reset car to a specific location #1

Fetzii opened this issue Jun 24, 2023 · 0 comments

Comments

@Fetzii
Copy link

Fetzii commented Jun 24, 2023

I'm trying to make an app which let's the player save his current position with a hotkey and then reset the car to that postion with another hotkey.

I had a look at ResetCar2Track and the Python Documentation of the ac module. It seems possible to save the location of the car via the getcarstate() function of the ac python module and to react to hotkeys using the csp extension for the ac python module. Furthermore the csp extension also offers a resetCar() funtion, so it is possible to edit the carstate. Unfortunatley there is neither a function setcarstate() nor the possibilty to give a specific location as an argument to the resetCar() function of the csp extension.

Can someone help me out here on how to do that? This must be possible if you can reset a car, because a reset also places the car to a dynamic point on the track depening on where the car is on the track when activating the resetCar() function

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

1 participant