How to move a custom prop to follow the player, using Verse?

Hey! How do I move a custom mesh that I created, using Verse? (With math, not using the Prop Mover Device). I know Verse has transform functions like MoveTo, but how do I use that on a custom prop, not a default Fortnite Prop? I tried adding a “creative_prop_asset” property to my script, and in the details panel I only see the option to choose a FN prop from a drop down menu. It appears to be a general list of FN props, not a list of props that are in my particular map. I’ve created Building Prop blueprints of some of my meshes so that the player can destroy them for points. I see my Building Props in my Content Browser but I don’t know how to access them in this way.

In addition, on a more advanced level the reason I want this feature is because I want to attach an Niagara system to my player for a trail. Potentially. Or maybe a mesh for a pet. So I also need to figure out how to update the location of the mesh, to match the player’s position as they move. I haven’t tried scripting this because I didn’t think about the possibility until @DolphinDom mentioned it. I’m not very familiar with the transforms section of the API so I need to do some experimenting.

Thanks in advance for the help! @Snownymous you mentioned you could post a screenshot about the prop moving stuff?

creative_prop_asset’s are mostly used for spawning props. You can’t spawn custom props at the moment although that’s something we hope to support in the future. You should, however, be able to reference custom props that have already been placed in the level and move them using Verse and for that you should use the creative_prop type.

Drag your custom prop into the level and add @editable MyProp:creative_prop = creative_prop{} to your device class. You can then assign the prop which you’ve already placed to MyProp using the UI for your device. MyProp.MoveTo should then work as expected.

We don’t provide any direct mechanisms to support attachment through verse at the moment. You can use MoveTo combined with the GetTransform() of the player’s fort_character, but the movement of the prop will lag behind.

3 Likes

The documentation for MoveTo says: Move the creative_prop to the specified Position and Rotation over the specified time. If an animation is currently playing on the creative_prop it will be stopped and put into the AnimationNotSet state. Does that mean a prop can’t be animated while being moved?

1 Like

Most movement animation would be stopped by MoveTo. Some types of internal animation would be unaffected.

2 Likes

Thank you @Tom.Noonan and @poltrr for the tips! :blue_heart: I’m going to return to this thread when I get a chance to try writing a “prop following the player” script, and then I may have more questions for you or for whoever wants to chime in. Ultimately I would use this script in my game and publish it as a a snippet. I mean, this sounds like a pets mechanic to me, which is extremely useful. :cat2:

Might take a while because I started learning Verse a while ago, but I took a break so I’m not up to date on the API. Plus I’m primarily an artist without much programming background, so coding doesn’t come naturally to me (even though I love it!) But ya, I’ll take a stab at it soon. :blush:

1 Like

I also need to move a prop to a player, can I see your code?

1 Like

BLA BLA BLA BLA BLA AND MORE BLA BLA BLA …■■■■■■■■ … HERE IS THE PROOF
Having a Prop act like a Pet in Fortnite Creative 2.0 / UEFN Verse (youtube.com)

ENJOY TALKING MORE BLA BLA BLA