How to compare results from GetTriggerCountRemaining for trigger devices?

Hi, I’m trying to find a way to see if a trigger device has been triggered (will be triggered at some point before the verse device will check), and I found a function for trigger devices GetTriggerCountRemaining

I set up a for loop to traverse an array of trigger devices and check if the remaining trigger count is 0 for each one, but I get an error for the comparison in the if statement and I don’t understand how to resolve it.


Does anyone know how to compare with this function from the trigger device?

You need to add () after GetTriggerCountRemaining

1 Like

Trying this now, thanks for the reply!

I’m still somewhat new and learning to Verse, do you know the reason sometimes function calls have () on the end and sometimes they don’t?

For example when I have the line for a trigger I’m subscribed to, and then it calls function startTPAllPlayers when it’s triggered

startTrigger.TriggeredEvent.Subscribe(startTPAllPlayers)

I feel like I still get confused a lot from Verse syntax sometimes, but slowly learning lol :yum:

By the way thanks that was it!! It’s comparing with the if statement and the count of triggers, and my code appears to work now :grin:

2 Likes