Merge remote-tracking branch 'origin/master' into branch

This commit is contained in:
Applevangelist
2025-07-03 10:55:58 +02:00
5 changed files with 74 additions and 11 deletions

View File

@@ -1924,3 +1924,10 @@ function UNIT:IsAAA()
end
return false
end
--- Set the relative life points of a UNIT object
-- @param #UNIT self
-- @param #number Percent Percent to set, can be 0..100.
function UNIT:SetLife(Percent)
net.dostring_in("mission",string.format("a_unit_set_life_percentage(%d, %f)", self:GetID(), Percent))
end