Yeah, we need the Clear
function exposed in Verse, along with everything else. It’s incredibly frustrating that there is not anywhere close to parity between the settings available in UEFN and the Verse API, and it makes for messy development with functionality split weirdly between the two.
Anyway… Not sure if this will help with your situation, but I was able to do it without indexes like this.
Add two VFX Powerups. For clarity, I’ll call them:
- VFX Powerup Effect
- VFX Powerup Effect Clear
In your Verse code, use the Pickup
function as necessary for each of them. Execute the Pickup
function in your Verse code on the VFX Powerup Effect Clear
device where you want to clear the the VFX Powerup Effect.
In UEFN, apply the following settings:
VFX Powerup Effect > User Options - Functions: Add Clear
function set for VFX Powerup Clear
for an On Item Picked Up
event.
VFX Powerup Effect Clear > User Options - Functions: Add Clear function set to VFX Powerup
for an On Item Picked Up
event.
In my use case, I also had to enable Infinite Effect Duration
and set Time to Respawn
to 0.0
.
Hope this helps.