OpenBVE
OpenBVE copied to clipboard
[Request] Animated variables
Hey! I was wondering if there can be the following possible additions for the animated files:
- TotalStates - Returns the total number of defined states in an object/statechangesound section
For the next one, I don't know if its completely possible , it's of similar but inverted form of use to the first one but for texture shifts, A way to return the texture's defined coordinates in the object file unchanged & as is, While i know that sometimes objects have different mesh builder sections with different coordinates & coordinate indexes resetting to 0 everytime a new mesh builder section is created, maybe a workaround can be adding a 'Texture Index' as well. At last this would be processed by using the current object state, then obtaining the different indexes & values from the current object state , working similar to this for example:
- XCoord[Texture Index, Coordinate Index] - Within the current object state, Returning the x coordinate of the texture with specified index & with a specified coordinate index
- YCoord[Texture Index, Coordinate Index] - Within the current object state, Returning the y coordinate of the texture with specified index & with a specified coordinate index.
There are certain functions i formulated that would be completely standardized if these additions were considered , preventing from manually changing values everytime there is a desired change. (Im speaking off my mind lol , i don't even know if these are possible, but hopefully, they are easier than i expected :) )