SetActivatorToTarget

From Eternity Wiki
Revision as of 02:09, 21 June 2019 by Printz (talk | contribs) (Created page with "'''ACS function''' bool SetActivatorToTarget (int tid) If a thing tagged ''tid'' exists, and this thing has a target (either monster enemy or projectile originator), cur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]