4
Fork 0

Added an argument check to HealthBarManager

master
Eddoursul 2 years ago
parent 99c3d3a01d
commit 5bbb5f75af
  1. BIN
      scripts/HealthBarManager.pex
  2. 24
      source/scripts/HealthBarManager.psc

Binary file not shown.

@ -1,17 +1,21 @@
Scriptname HealthBarManager Hidden
function Show(Actor akActor) global
int handle = ModEvent.Create("Enderal_ShowActorHealth")
if handle
ModEvent.PushForm(handle, akActor)
ModEvent.Send(handle)
endIf
if akActor
int handle = ModEvent.Create("Enderal_ShowActorHealth")
if handle
ModEvent.PushForm(handle, akActor)
ModEvent.Send(handle)
endIf
endif
endfunction
function Hide(Actor akActor) global
int handle = ModEvent.Create("Enderal_HideActorHealth")
if handle
ModEvent.PushForm(handle, akActor)
ModEvent.Send(handle)
endIf
if akActor
int handle = ModEvent.Create("Enderal_HideActorHealth")
if handle
ModEvent.PushForm(handle, akActor)
ModEvent.Send(handle)
endIf
endif
endfunction

Loading…
Cancel
Save