-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathME5_HUD_LowHealth.lua
More file actions
34 lines (29 loc) · 896 Bytes
/
ME5_HUD_LowHealth.lua
File metadata and controls
34 lines (29 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function meu_lowhealth_postCall(this)
AddIFScreen(ifs_lowhealth_vignette,"ifs_lowhealth_vignette")
meu_lowhealth_scr_rspwn = CreateTimer("meu_lowhealth_scr_rspwn")
SetTimerValue(meu_lowhealth_scr_rspwn, 0.5)
elapse_lowhealth = OnTimerElapse(
function(timer)
StopTimer(meu_lowhealth_scr_rspwn)
ifs_lowhealth_vignette.TimerType = false
ScriptCB_PushScreen("ifs_lowhealth_vignette")
end,
meu_lowhealth_scr_rspwn
)
spawn_lowhealth = OnCharacterSpawn(
function(player)
if IsCharacterHuman(player) and ifs_lowhealth_vignette.TimerMngr > 0 then
SetTimerValue(meu_lowhealth_scr_rspwn, 0.5)
StartTimer(meu_lowhealth_scr_rspwn)
end
end
)
-- TEST
-- death_lowhealth = OnCharacterDeath(
-- function(player, killer)
-- if IsCharacterHuman(killer) then
-- ScriptCB_PushScreen("blue_horse")
-- end
-- end
-- )
end