mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
[gauges] Make gauges immortal
This commit is contained in:
parent
7dbac7b8ca
commit
b25fd961f6
@ -8,6 +8,9 @@ local hp_bar = {
|
|||||||
textures = {"20.png"}, -- The texture is changed later in the code.
|
textures = {"20.png"}, -- The texture is changed later in the code.
|
||||||
visual_size = {x = 1.5, y = 0.09375, z = 1.5}, -- Y value is (1 / 16) * 1.5.
|
visual_size = {x = 1.5, y = 0.09375, z = 1.5}, -- Y value is (1 / 16) * 1.5.
|
||||||
wielder = nil,
|
wielder = nil,
|
||||||
|
on_activate = function(self)
|
||||||
|
self.object:set_armor_groups({immortal = 1})
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
function hp_bar:on_step(dtime)
|
function hp_bar:on_step(dtime)
|
||||||
|
Loading…
Reference in New Issue
Block a user