This tutorial shows how you can reapply the visual effect powerup after a player is eliminated or after they respawn
https://dev.epicgames.com/community/learning/tutorials/XWMY/fortnite-verse-keep-vfx-on-elimination
Hey I was looking to add a vfx on the players head like a crown with the highest elimination while the game is going and if another player gets higher eliminations then the crown switches to them, can you help
In Fiery Flights, I persist max eliminations per round and apply on game start. Then I check if the current round max value has changed on each elimination. If it has changed, I set TopEliminator, apply the effect to player with most eliminations and clear the effect for the previous top eliminator player.
If you do not want to persist between games, simply subscribe to eliminations in Verse (then filter out self eliminations by comparing source and target agents). Keep and increment total eliminations in a map for each kill, map type: [agent]int. Also track
var MaxEliminations : int = 0
If a player has now more eliminations than MaxEliminations, set it to new value. In the tutorial, we set new top eliminator every 30 sec. You should delete
spawn { AttachEffect() }
Because applying the effect will now be based on eliminations. Simply pickup the effect for player when they have max kills and set TopEliminator. (But before setting new TopEliminator, get the agent from it and clear the effect for the previous top eliminator)
Tip: Use some built in vfx effect to make sure your verse logic is correct. After you test and ensure the effect is applied to player when it should, replace the built in effect with your custom Niagara. I suspect there are many yt videos, including attaching crowns/hats.
To be honest I don’t know anything about verse, is it possible you can do the code?