Page MenuHomeFeedback Tracker

[1.2.1.66 Experimental] `IEntity.AddChild`'s pivot gets no longer properly replicated
Assigned, NormalPublic

Description

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.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
General
Steps To Reproduce
  1. Open MpTest.ent in experimental workbench
  2. Run play mode with one peer client.
  3. 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"));
  1. Go to crouch position
  2. 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).

Event Timeline

ookexoo created this task.Sep 6 2024, 4:22 PM
Geez changed the task status from New to Assigned.Sep 10 2024, 3:40 PM