Exports

There are 2 exports included with the script (client-side).

Export
Description
Parameter(s)
Return type

IsPlayerBlinded

Returns if the local player is blinded by a stungrenade

None

Boolean

GetPlayerBlindnessLevel

Gets the level of blindness (0.0 to 1.0)

None

Number

Example

local isBlinded = exports.stungrenade:IsPlayerBlinded()
local blindnessLevel = exports.stungrenade:GetPlayerBlindnessLevel()

if isBlinded then
    print(string.format("Local player is blinded at level %s", blindnessLevel))
else
    print("Local player is not blinded")
end

Last updated