Toggle search
Search
Toggle menu
Toggle personal menu
Editing
Data:Instruction:Get Health
From Desynced Wiki
Read
Edit source
View history
Data
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
#REDIRECT [[Get Health]] [[Category:Data:Storage:instruction]] {{DISPLAYTITLE:Get Health}}<noinclude> {{DataInstruction |name = Get Health |luaId = get_health |description = Gets a unit's health as a percentage, current remaining and max amount |category = Math |icon = H Value.png |explaination = Gets health values for a Unit. Defaults to the unit the behavior is executing on. <hl>Percent</> is the current health as a percentage of max health <hl>Current</> is the actual amount of health points left <hl>Max</> is the maximum amount of health points Optional <hl>Unit</> parameter to specify a different unit in your faction. |argsType1 = Input |argsName1 = Unit |argsDescription1 = Unit to check |argsDataType1 = entity |argsType2 = Output |argsName2 = Percent |argsDescription2 = Percentage of health remaining |argsDataType2 = |argsType3 = Output |argsName3 = Current |argsDescription3 = Value of health remaining |argsDataType3 = |argsType4 = Output |argsName4 = Max |argsDescription4 = Value of maximum health |argsDataType4 = |argsType5 = |argsName5 = |argsDescription5 = |argsDataType5 = |argsType6 = |argsName6 = |argsDescription6 = |argsDataType6 = |argsType7 = |argsName7 = |argsDescription7 = |argsDataType7 = |argsType8 = |argsName8 = |argsDescription8 = |argsDataType8 = |argsType9 = |argsName9 = |argsDescription9 = |argsDataType9 = |argsType10 = |argsName10 = |argsDescription10 = |argsDataType10 = |argsType11 = |argsName11 = |argsDescription11 = |argsDataType11 = }}{{DataTableIndex |storedTable=instruction |name=Get Health }}</noinclude>
Summary:
Please note that all contributions to Desynced Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Desynced Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:DataInstruction
(
edit
)
Template:DataTableIndex
(
edit
)