View Single Post
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 04-20-2016 , 07:44   Re: [TF2] return function; (new syntax)
Reply With Quote #6

Quote:
Originally Posted by Phil25 View Post
For this to work you should change "void" to "int". But what you're trying to achieve could be done with reading the max health netprop of the player entity. I advise you to do that as max health could change depending on the loadout.
Totaly agree with Phil, if you add void to your function it makes it return nothing, so it's useless, you are actually trying to return a integrer so replace void with the right thing.
__________________
Benoist3012 is offline