Data:Instruction:Get Health: Difference between revisions

From Desynced Wiki
No edit summary
m (Pywikibot 10.3.1)
 
(8 intermediate revisions by 3 users not shown)
Line 4: Line 4:
{{DataInstruction
{{DataInstruction
|name = Get Health
|name = Get Health
|description = Gets a units health as a percentage, current and max
|luaId = get_health
|description = Gets a unit's health as a percentage, current remaining and max amount
|category = Math
|category = Math
|icon = H Value.png
|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
|argsType1 = Input
|argsName1 = Entity
|argsName1 = Unit
|argsDescription1 = Entity to check
|argsDescription1 = Unit to check
|argsDataType1 = entity
|argsDataType1 = entity
|argsType2 = Output
|argsType2 = Output
Line 27: Line 35:
|argsDescription5 =  
|argsDescription5 =  
|argsDataType5 =  
|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
}}{{DataTableIndex
|storedTable=instruction
|storedTable=instruction
|name=Get Health
|name=Get Health
}}</noinclude>
}}</noinclude>

Latest revision as of 07:09, 12 August 2025

Redirect to: