Summary
The switch device is missing the agent as an output for some functions. I believe they should output a ?agent instead of void. Similar to how the trigger_device works for example:
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Devices
Steps to Reproduce
see Fortnite.digest.verse
Expected Result
I am able to use IfOnWhenCheckedEvent, and other similar functinos from the switch device in a case where I need to get the agent. For example. When a player steps on a trigger device, I check the state of the switch. If it is on, grant a weapon using the item granter device. This works when using event binding, but I don’t understand why verse does not support this.
See this code as a suggestion, this would output either a signal with or without instigator agent when the event fires.
Observed Result
I am unable to get an agent as output when I listen to these functions:
Only solution I have is to listen to the event using a trigger device, and then use the trigger device, since this device does have this functionality. This requires me 1 trigger for each switch_device I want to check. However, this workaround is not sustainable for me anymore
Platform(s)
PC