Talk:IsPlayerOverencumbered

From GECK
Jump to: navigation, search

Trying to calculate if the player is overencumbered

  • For unknown reasons, when trying to calculate if the player is overencumbered via a combination of the GetActorValue + GetPerkModifier + GetInventoryWeight functions, the check can sometimes fail. For example, the following does not work reliably:
   float fCarryWeightModAV 
   set fCarryWeightModAV to PlayerRef.GetAV CarryWeight + PlayerRef.GetAVMOD CarryWeight + 1
   set fCarryWeightPerkAV to  PlayerRef.GetPerkModifier 22 fCarryWeightModAV

--Demorome (talk) 16:59, 1 May 2021 (UTC)