How can I save the Static Mesh transform of an FGBuildable?

I change the locations and rotations of a buildable via a widget How to save these values?
10 Replies
Rex
Rex2mo ago
You have to make sure the buildable can be moved, temporarily change the actor mobility to Movable if necessary. This should work in singleplayer In multiplayer, you need to move the buildable on the side with authority (the server). You need to use a RCO for this, see https://docs.ficsit.app/satisfactory-modding/latest/Development/Satisfactory/Multiplayer.html and ExampleMod for information
Jean Michel
Jean MichelOP2mo ago
The Static Mesh moves very well But what I want is that when I leave the game, this new position is saved
Rex
Rex2mo ago
Which buildable is it? Are you moving the entire buildable or just the static mesh component?
Jean Michel
Jean MichelOP2mo ago
When I come back to the game, this object must have kept the transform that I gave it It's a FGBuildable and and for now I only move the SM Do you think if I move the FGBuildable it will save?
Rex
Rex2mo ago
Is it any specific subclass of FGBuildable? There's many subclasses, with very different behaviours The buildable's transform should be in the save game so changing that should work
Jean Michel
Jean MichelOP2mo ago
No subclass of FGBuildable
Jean Michel
Jean MichelOP2mo ago
Is this correct or is something else needed?
No description
Rex
Rex2mo ago
If the buildable is saved into the save game, moving the buildable itself should work If you want to move the mesh component, I believe the mesh component also needs to be saved
Jean Michel
Jean MichelOP2mo ago
OK thanks, I try
Solution
Rex
Rex2mo ago
No description
Want results from more Discord servers?
Add your server