I need help. How to call a Visual Effect Powerup Device in my Verse code to a specific player?

You can use the “Pickup” function of the visual effect powerup device, passing the target agent as the parameter. You should also set the “Apply To” option on the device to “Player” so it only applies to your target.

Add an editable Visual Effect powerup device:

  @editable
  FreezeVFX : visual_effect_powerup_device = visual_effect_powerup_device {}

then in FreezePlayer() add:

  # Get the agent from the target fort_character
  if(Agent := Target.GetAgent[]):

      # Apply the freeze VFX
      FreezeVFX.Pickup(Agent)

I would recommend utilizing the Fortnite.Digest.Verse file in the vscode folder explorer to look for specific functions like this. Many will have comments explaining how to use them.

1 Like