How to setup a function to be available in user options functions list ?

How to setup a function to be available in user options functions list ?

Here :
uefn_no_function

1 Like

Unfortunately you can’t can add devices as @editables and then have the code use the interacted/triggered/etc events to trigger a function inside verse code

Yes, like this : https://www.youtube.com/watch?v=aGB13HO_O44

1 Like

Yes exactly like that, thats how Verse interacts with devices (Along with gameplay tags)

The UI way allows multiples entries while the verse version require one line by entry and a fixed count.

You can create an array for devices eg.

@editable MyTriggers : []trigger_device = array{}

and then to do stuff on all of them use for like this

for(Trigger:MyTriggers):
      Trigger.Enable()
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.