Triggers and Exports

Some functions you can have other scripts use in the HUD

DISPLAY

  • Manage the hud display. False will hide the HUD and true will show it. This is useful in case you want to make the HUD disappear when another UI is opened or things like that.

exports['forge-hud']:Display(true / false)

ZONES

  • These exports are to be called from any script and will show the area sign in the HUD:

Show the Safe Zone sign:

exports['forge-hud']:ShowSafeZoneHud()

Show the Red Zone sign:

exports['forge-hud']:ShowRedZoneHud()

Hide the signs:

exports['forge-hud']:HideZoneHud()

STRESS

  • These functions are to be called from any script and will do things to stress of the players. For example, if you want an ITEM to reduce stress...

Reset stress completely:

forge-hud:resetStress

Add any amount of stress you want:

forge-hud:addStress, value

Reduce any amount of stress you want:

forge-hud:removeStress, value

Last updated