Health, Shield, and Headshot Options
using { /Verse.org/Simulation }
using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /Fortnite.com/Characters }
<# IMPORTANT | Please read:
- add as many health/shield configurations as you want
- make sure to disable "Throttle Class Changes" in the class selector devices
- if you selected any class selectors (they are not needed)
- Script created by Hafemi
#>
health_slider_manager := class(creative_device):
@editable Configurations: []health_configuration = array{}
@editable OverShieldSwitch: switch_device = switch_device{}
@editable OnlyHeadshotSwitch: switch_device = switch_device{}
@editable OverShieldClass: class_and_team_selector_device = class_and_team_selector_device{}
@editable DefaultClass: class_and_team_selector_device = class_and_team_selector_device{}
@editable HealUpOnElim: logic = true
var CurrentHealth: float = 100.0
var CurrentShield: float = 100.0
var MaybeActiveClass: ?class_and_team_selector_device = false
var IsOnlyHeadshot: logic = false
OnBegin<override>()<suspends>:void=
for (Conf: Configurations):
if (Trigger := Conf.Trigger?, Button := Conf.Button?):
spawn. AwaitTriggerOrButton(Conf, Trigger, Button)
else if (Trigger := Conf.Trigger?):
spawn. AwaitTrigger(Conf, Trigger)
else if (Button := Conf.Button?):
spawn. AwaitButton(Conf, Button)
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.