im trying to get A vfx device to follow the player, however it disappears when the player is hidden. i want the vfx to be visible on the player while the player is hidden.
Can you show your code ? The VFX should not disable since it shouldn’t know that it’s actually attached to a player, you’re only changing its position right ?
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
invisible := class(creative_device):
@editable
cond_btn: conditional_button_device = conditional_button_device{}
@editable
Vfx: vfx_creator_device = vfx_creator_device{}
@editable
mutator: mutator_zone_device = mutator_zone_device{}
HoldingEvent( Agent : agent) : void =
if(FortCharacter := Agent.GetFortCharacter[]):
if(cond_btn.IsHoldingItem[Agent]):
FortCharacter.Hide()
else:
FortCharacter.Show()
OnBegin<override>()<suspends>: void =
loop:
mutator.Enable()
mutator.AgentEntersEvent.Subscribe(HoldingEvent)
Sleep(0.1)
mutator.Disable()
Sleep(0.1)
Use a blueprint, hide it, have that follow the player and attach the vfx to that.
i have no idea how to do any of that
Here’s a blueprint being moved by verse:
Here’s a tutorial to have something look at a player with verse, you just need to modify the translation and not just rotation:
I’ll do a tutorial on something following a player soon… it’s on the list.
thank you! ill try this out and report back to you