SlashCo Wiki

SlashCo.GetCurrentFogMultiplier

 number, table SlashCo.GetCurrentFogMultiplier( Player ply, table infoTbl = nil )

Description

Returns the highest-priority fog multiplier currently applicable to a player.
Spectators use the fog settings of the player they are spectating.
If a spectator is not spectating a valid player, a multiplier of 100 is returned.
When infoTbl is provided, applicable fog information is merged into it while searching.

Arguments

1Player ply

Player whose applicable fog should be determined

2table infoTbl = nil

Optional table to merge applicable fog information into

Returns

1number multiplier

Highest-priority applicable fog multiplier, or 1 when no fog entry applies

2table fogInfo

Highest-priority applicable fog information, or nil when no fog entry applies