AddFoodExhaustion
#1
I want to make player's food bar be decreased on moving. I tried with this, but don't work.
Code:
function OnPlayerMoving(Player)
    Player:AddFoodExhaustion(1)
end
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:
Code:
Player:AddFoodExhaustion(0.3f)
I tried with it but I get a malformed numbers error.
Reply
Thanks given by:


Messages In This Thread
AddFoodExhaustion - by tonibm19 - 07-02-2013, 04:09 AM
RE: AddFoodExhaustion - by xoft - 07-03-2013, 05:04 PM



Users browsing this thread: 1 Guest(s)