Engine
Engine copied to clipboard
Bug: `logic_random_outputs` connection has an offset of 1
Describe the bug
https://developer.valvesoftware.com/wiki/Logic_random_outputs
In order to use the "OnTrigger" event properly, you have to use an offset of 1. This means that the first and last "Chance" option is entirely unusable, too.
In order to get a pair of randomness working, it looks like this:
https://github.com/StrataSource/Engine/assets/63379443/382fb63d-bb70-4c10-996b-52d699c3c675
To Reproduce
- Link two chances to the same number of "OnTrigger"
- Your logic doesn't work
- Repeat with an offset, now it is working
Issue Map
Any
Expected Behavior
Being able to use OnTrigger1Chance and OnTrigger8Chance
Operating System
No response
The only thing that is one off is OnTriggerChanceX keyvalue. FGD has values 1-8, but the game reads 0-7.