Craig Martin

(Official) LUA Scripting Documentation

add_health_effect

Add an effect which increases or decreases the context actor’s health over time.


Spec:

add_health_effect(
	long points,
	long millisecs,
	long duration,
	string name)

Parameters


If duration and millisecs are omitted, the effect is applied only once


Examples

add_health_effect(2,3000,4000)

This example increases the actors health by 2 hitpoints every 3 seconds over a time period of 4 seconds


add_health_effect(-5)

This example decreases the actors health by 5 hitpoints (once only)


Incomplete

This documentation is incomplete


back