Hi, i want to spawn a object when player clicks the button. In server, it spawns but in client it spawns with reduced scale. i tried every method on internet but it doesn’t worked. any helps?
Kind Regards.
Client Interact → RPC Server → Server spawns “Replicated” Actor.
That should be it. If the server is changing the Scale of the Actor on Spawn…say exposed var. Then that Var needs to be set to replicate.
i am making the same thing but it still doubles it
Is the scale of the actor itself set below 1.0?
For example say I create a BP Actor class that has a mesh and I scale that mesh in the viewport. When I spawn the mesh I leave scale in the spawn node to 1.0, this will modify the scale of the actor on spawn.
actor and mesh, everything scales default 1
Are you attaching the spawned actor to another actor/component?
no spawned actor is by itself
i fixed the duplicate thing, only problem is reduced scale. i thought it was actor’s problem(maybe i scaled it somewhere etc.). tried another actor in same code, it still reduces scale.
i’d need to see the full pipeline to help further.
in Spawn Server node, i made itClass input just to try another actor. It reduces scale, so doesn’t work.
i am calling interface from component btw.
i solved the problem by the way. if anyone occurs the same problem;
i don’t know why it is happening, probaby bug or something. in my spawning actor’s bp. in begin play;
i set the scale of mesh to 1,1,1. now everytime a item spawns it automaticly sets it scale to 1,1,1.
Client Interact → RPC Server → Server spawns “Replicated” Actor.
That should be it. If the server is changing the Scale of the Actor on Spawn…say exposed var. Then that Var needs to be set to replicate.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.