SetActivatorToTarget

From Eternity Wiki
Jump to navigationJump to search

ACS function

bool SetActivatorToTarget (int tid)

If a thing tagged tid exists, and this thing has a target (either monster enemy or projectile originator), current script's activator will become that target. If the tagged thing exists but without any target, then the activator will become the tagged thing. In both these cases, the function will return TRUE. Otherwise, if there's no tagged thing, the function will do nothing and return FALSE.

See also[edit]