BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to cycle through multiple object one at a time using a key?

Go down

How to cycle through multiple object one at a time using a key? Empty How to cycle through multiple object one at a time using a key?

Post by ADbve Sat Feb 19, 2022 6:31 am

Hello

I see on example function in documentation page we can cycle through multiple object, but it seems depends only on refresh rate (in seconds) to how long each object appear.

I want to use that example to use in my addon but not using refresh rate command to determine which object should appear ,instead i want to keymap that function to other key.

So when start simulation object1 should appear and when i press a key swap object1 to object2 and so on, when current object appeared is the last object after key pressed it should swap back to object1.

This function is very usefull if the train have multiple variant of livery, so the user dont need to quit to main menu to select other variant.

ADbve

Posts : 72
Join date : 2020-05-14

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum