Page MenuHomeFeedback Tracker

Proc Anim Problem with BaseClothComponent
Reviewed, NormalPublic

Description

Mod : Night Vision System.

For my new update i have setup Night Vision Goggles animation on helmet. For that i have create a prefab for nvg goggles with the baseclothcomponent without checking the "animate" box to animate them with a proc anim. On my helmet i have attach NVG Goggles in the baseclothcomponent under slot tab. I have setup the proc anim/signal and its working partially. I have few problem :

  • If i equip the helmet and turn night vision on NVG Goggles are working and the animation progress but others people dont see the animation.
  • If i put an helmet on the ground without equipping it when i play the animation its working and others people see it.
  • If i equip the helmet and drop it on the ground nothing happens when i play the animation but signals are working well.
  • if i attach NVG Goggles with a slotComponent i cant walk properly.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 11 x64
Category
General
Steps To Reproduce
  • Equip an helmet, turn on Night Vision with "N". Animation is working for the local player but not for others players.
  • Put an helmet on the ground press "Unfold" animation is working, equip the helmet turn on NVG animation isn't working. Put the helmet on the ground press "Unfold" animation isn't working.

Event Timeline

Geez changed the task status from New to Assigned.Feb 23 2023, 2:23 PM
Geez changed the task status from Assigned to Need More Info.May 29 2023, 4:04 PM
Geez added a subscriber: Geez.

Hello gregfr_3d.

Animations are not replicated to other players, because you need to use a multiplayer signal if you want to replicate it, and set it on the owner.

Is it possible to upload your mod, so we can investigate it further?

Hello, first sorry for the delay.

I've uploaded the mod. To reproduce the bug, equip a night vision helmet and press "N". The rotation animation works, then drop the helmet and take it again, the animation no longer works.

Geez changed the task status from Need More Info to Reviewed.Sep 13 2023, 12:06 PM

Hello gregfr_3d.
There are multiple issues, I will try to tell you exactly what you should do for each of them.

  • If other people don't see your animation, it is because if your entity is a GameEntity, your component needs to define the function OnTicksOnRemoteProxy and return true inside of it. This will tick your component on other players. Or instead, just use GenericEntity instead of GameEntity.

-"Animation doesn't work when taking it and then placing it on the ground." This is because all clothes are disabled on the ground. We would suggest instead to not use the cloth system but the AttachmentSlotComponent and AttachmentsStorageComponent. Those are less restrictive and fit more for NVG purposes.

  • For the slot component issue, this is probably because you did not check the checkbox for disabling physics when attached. So your item still has physics even when it is attached to the slot. This is not enabled by default in the base game because we don't have any case where we have head cloths which have physics.