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

Add: [Script] ScriptEventVehicleAutoReplaced. #7716

Merged
merged 1 commit into from Oct 22, 2019
Merged

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Sep 1, 2019

This event could be useful for AIs to keep track of their vehicles.
Not really tested (I'm not an AI writer), but should work in theory.


/**
* Get the VehicleID of the vehicle that has been replaced.
* @return The VehicleID of the vehicle that has been replaced.
Copy link
Contributor

@nielsmh nielsmh Sep 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should perhaps detail that the VehicleID is no longer valid. Perhaps: "The VehicleID of the vehicle before replacement. This ID is no longer valid for referencing the vehicle."

@nielsmh nielsmh merged commit 12e43c6 into OpenTTD:master Oct 22, 2019
8 checks passed
@glx22 glx22 deleted the ai_event branch Oct 25, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants