Hi everyone
For a mod I would like to change the way new vehicles are unlocked while playing. So instead of the unlocks being based on the current in-game year you could unlock specific vehicles through the UI. Unfortunately I don't really now how to get started, since I didn't find anything regarding this topic in the modding documentation or in existing mods, so I'm not sure if this is possible at all.
If there is no simple API command to lock/unlock vehicles another approach would be to change the availability.yearFrom & availability.yearTo in the metadata of the vehicles at runtime. But also with this apporach I don't really see a way to do it, since these values are stored within the model metadata and I have not yet found a way to change these at runtime.
Since the mod would contain logic that's dependent on the game state it should all be handled within the update function in a game_script.
If anyone here has any experience with this or any ideas of how to approach this, I would be extremely grateful.
Cheers