Added an argument check to HealthBarManager
This commit is contained in:
parent
99c3d3a01d
commit
5bbb5f75af
Binary file not shown.
@ -1,17 +1,21 @@
|
||||
Scriptname HealthBarManager Hidden
|
||||
|
||||
function Show(Actor akActor) global
|
||||
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
|
||||
if akActor
|
||||
int handle = ModEvent.Create("Enderal_HideActorHealth")
|
||||
if handle
|
||||
ModEvent.PushForm(handle, akActor)
|
||||
ModEvent.Send(handle)
|
||||
endIf
|
||||
endif
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user