When attaching an object to another's pivot through AddChild, it appears to be attached to parent's root rather than the specified pivot on clients.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 11 x64
- Category
- General
Steps To Reproduce
- Open MpTest.ent in experimental workbench
- Run play mode with one peer client.
- Execute the following in the script console:
IEntity player = SCR_PlayerController.GetLocalMainEntity(); EntitySpawnParams params = new EntitySpawnParams(); player.GetWorldTransform(params.Transform); IEntity cleaner = GetGame().SpawnEntityPrefab(Resource.Load("{06FC1C2C3EFF3F5A}PrefabsEditable/Auto/Props/Civilian/VacuumCleaner_01/E_VacuumCleaner_01_blue.et")); cleaner.GetPhysics().SetInteractionLayer(EPhysicsLayerPresets.FireGeo); player.AddChild(cleaner, player.GetAnimation().GetBoneIndex("Head"));
- Go to crouch position
- Compare the result between the workbench and the peer client.
Additional Information
We use a compartment on a helper entity attached to a player's upper spine for the implementation of carrying other players in ACE Anvil (https://github.com/acemod/ACE-Anvil/tree/master/addons/carrying).