Difference between revisions of "Talk:Actor Script"
Jump to navigation
Jump to search
imported>Doulos (Created page with "== 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 ...") |
imported>Cipscis (→Player as Actor: Use ReferenceAlias or ActiveMagicEffect) |
||
Line 3: | Line 3: | ||
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)? | 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)? | ||
--[[User:Doulos|Doulos]] 21:16, 16 February 2012 (EST) | --[[User:Doulos|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. | |||
: -- [[User:Cipscis|Cipscis]] 21:19, 16 February 2012 (EST) |
Revision as of 21:19, 16 February 2012
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)