07-02-2013, 04:09 AM
I want to make player's food bar be decreased on moving. I tried with this, but don't work.
What's wrong? How can AddFoodExhaustion be used? If you can, add an explanation on the wiki.
I saw that in Player.cpp is used like this:
I tried with it but I get a malformed numbers error.
Code:
function OnPlayerMoving(Player)
Player:AddFoodExhaustion(1)
end
I saw that in Player.cpp is used like this:
Code:
Player:AddFoodExhaustion(0.3f)