Extreme vehicle lag happens on client when i try add RPG7 or M72 launchers with TrySpawnPrefabToStorage or TryInsertItem (SCR_VehicleInventoryStorageManagerComponent).
Same problem when add launcher on vehicle's SCR_UniversalInventoryStorageComponent in WB.
Description
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
WAY 1:
Easy test with remote console:
Run this code on server when targeting on vehicle:
IEntity cursorTarget = null;
CameraManager cameraManager = GetGame().GetCameraManager();
CameraBase current = cameraManager.CurrentCamera();
cursorTarget = current.GetCursorTarget();
InventoryStorageManagerComponent ismc = InventoryStorageManagerComponent.Cast(cursorTarget.FindComponent(SCR_VehicleInventoryStorageManagerComponent));
ismc.TrySpawnPrefabToStorage("{7A82FE978603F137}Prefabs/Weapons/Launchers/RPG7/Launcher_RPG7.et");
Enter vehicle with peer tool client and drive.
WAY 2:
Put UAZ to world, select SCR_UniversalInventoryStorageComponent, add RPG7 to initial storage slot.
Run mission with peer tool. Get in vehicle with client and drive.
Vehicle lag happening only on clients.
Tried all physics settings on SCR_UniversalInventoryStorageComponent but nothing changes.
Same result on dedicated server too.
SCR_VehicleInventoryStorageManagerComponent initial inventory items in WB not working for me....