Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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: (Enable/Disable)ForCompany GS methods for rail/road/tram types #9023

Closed
James103 opened this issue Apr 11, 2021 · 0 comments
Closed

Add: (Enable/Disable)ForCompany GS methods for rail/road/tram types #9023

James103 opened this issue Apr 11, 2021 · 0 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) enhancement Issue would be a good enhancement; we accept Pull Requests!

Comments

@James103
Copy link
Contributor

Version of OpenTTD

1.11.0 (and especially after #9021)

Expected result

Just like GSEngine, there should be EnableForCompany and DisableForCompany methods for GSRail and GSRoad (rail/road/tram types). This can, for example, allow companies to "research" road and rail types just like engines, giving them exclusive access before everyone else.

Actual result

There appears to be no method to force enable or disable rail/road/tram types for a specific company (or even at all), even though avail_railtypes and avail_roadtypes is stored per company.

Steps to reproduce

Look in the documentation (GSRail, GSRoad) for a way to force enable/disable rail/road/tram types for a specific company.

@2TallTyler 2TallTyler added component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) enhancement Issue would be a good enhancement; we accept Pull Requests! labels Oct 19, 2022
@OpenTTD OpenTTD locked and limited conversation to collaborators Jan 7, 2024
@TrueBrain TrueBrain converted this issue into discussion #11710 Jan 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) enhancement Issue would be a good enhancement; we accept Pull Requests!
Projects
None yet
Development

No branches or pull requests

2 participants