• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

[DOC] Python Doc

Status
Not open for further replies.

assettocorsamods

Administrator
Staff member

Attachments

Last edited by a moderator:

assettocorsamods

Administrator
Staff member
Just in case, added the attachement to first post.
It was last updated on March 31st, 2016. Don't know if the googledocs version is up-to-date as well.
 

fughettaboutit

aka leBluem
new in the attached document as of 2020, 21 undocumented vanilla functions:

Code:
ac.isAcLive() as bool
ac.restart()

ac.isCarInPitlane() as bool # same as ac.isCarInPitline()
ac.getCarSkin(carID) as string
ac.getDriverNationCode(carID) as string
ac.getCurrentSplits(carID) as List
ac.getTrackLength(carID) as float
ac.getWindSpeed() as float
ac.getWindDirection() as float
ac.isAIControlled() as bool
ac.getCarEngineBrakeCount() as int
ac.getCarPowerControllerCount() as int

ac.freeCameraSetClearColor(r, g, b, alpha)
ac.freeCameraMoveForward(float)
ac.freeCameraMoveRight(float)
ac.freeCameraMoveUpWorld(float)
ac.freeCameraRotatePitch(float)
ac.freeCameraRotateHeading(float)
ac.freeCameraRotateRoll(float)

ac.sendChatMessage(string_msg)
ac.addOnChatMessageListener(ac_WindowID, callBackFunction)
also changed wrong ac.addInputText() to ac.addTextInput() on page 11.

CustomShadersPatch adds more python functions, see CSP wiki

edit March 2023: there is now a dummy library you can use for better auto-comlete:
https://assettocorsamods.net/threads/is-there-a-way-to-load-ac-library-to-have-autocomplete-in-an-ide-e-g-pycharm.3088/
 

Attachments

Last edited:
Status
Not open for further replies.
Top