Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Weight To An Item
#15
Code:
If GetPlayerCurWeight(Index) > GetPlayerMaxWeight(Index) Then Call PlayerMsg(Index, "You are over encumbered!", White)

Thats a key line of code for this system. If you want being over encumbered to carry penalties, that's pretty much how you would do it. I would probably take the above line of code and use it to determine whether a player can walk or not. Putting this in the appropriate sub would work:

Code:
If GetPlayerCurWeight(Index) > GetPlayerMaxWeight(Index) Then CanMove = False
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)