Talk:Actor Script
Revision as of 21:19, 16 February 2012 by imported>Cipscis (→Player as Actor: Use ReferenceAlias or ActiveMagicEffect)
Player as Actor
How are we to run Events on the player from the Actor Object? Is there a way to attach scripts to the player, or something equivalent? For example, how can I detect when the player is hit (using an OnHit block)? --Doulos 21:16, 16 February 2012 (EST)
- Scripts extending ReferenceAlias or ActiveMagicEffect will be sent events from Actors that they are pointing at, and it is possible to use a Quest to point a ReferenceAlias script at the player, or a Spell to point an ActiveMagicEffect script at the player.
- -- Cipscis 21:19, 16 February 2012 (EST)