(Official) LUA Scripting Documentation
add_health_effect_history
Add an effect which increases or decreases the context actor’s health over time.
Spec:
add_health_effect_history(
long points,
string history_key,
long millisecs,
string name)
Parameters
points
: The number of hitpoints per effect. A positive number increases health, a negative number decreases healthhistory_key
: The effect is only applied if this history record existsmillisecs
: The time in milliseconds between each effectname
: An optional name that can be tagged to the effec
Example
add_health_effect_history(2,"poison",3000)
This example increases the actors health by 2 hitpoints every 3 seconds as long as get_history("poison") ~= 0
Incomplete
This documentation is incomplete