IsFloatNearlyZero: Difference between revisions
From Onset Developer Wiki
m basic example |
m more see also links |
||
Line 19: | Line 19: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[RandomFloat]] | * [[RandomFloat]] | ||
* [[Base64Encode]] | |||
* [[Base64Decode]] | |||
* [[GetPlayerHealth]] | |||
* [[SetPlayerHealth]] | |||
* [[GetPlayerArmor]] | |||
* [[SetPlayerArmor]] |
Latest revision as of 17:50, 21 December 2019
Description
Checks if a float value is nearly zero.
Syntax
IsFloatNearlyZero(Value)
Parameters
- Value
The float value
Return Value
- Returns true if success.
Example
if IsFloatNearlyZero(GetPlayerHealth()) then
AddPlayerChat("You are about to die")
end