Talk:IsThePedDead: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Doubt this would work. Health is a floating point variable and thus comparing it to 0 may not always work as it might return 0.000001 --~~~~") |
UniOnDennis (talk | contribs) (Forgot to use the '~~~~' in the talk) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
--[[User:Arran Fortuna|Arran Fortuna]] 16:53, 13 May 2013 (UTC) | --[[User:Arran Fortuna|Arran Fortuna]] 16:53, 13 May 2013 (UTC) | ||
Using math.floor should fix this I guess, players die when their health becomes (under) 0. | |||
--[[User:UniOnDennis|UniOnDennis]] 20:03, 13 May 2013 (UTC) |
Latest revision as of 20:07, 13 May 2013
Doubt this would work. Health is a floating point variable and thus comparing it to 0 may not always work as it might return 0.000001
--Arran Fortuna 16:53, 13 May 2013 (UTC)
Using math.floor should fix this I guess, players die when their health becomes (under) 0.
--UniOnDennis 20:03, 13 May 2013 (UTC)