Difference between revisions of "OnTriggerMob"
Jump to navigation
Jump to search
imported>DragoonWraith |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
begin OnTriggerMob TriggeringRefID | begin OnTriggerMob ''TriggeringRefID'' | ||
'''Example:''' | '''Example:''' | ||
begin OnTriggerMob | |||
begin OnTriggerMob player | begin OnTriggerMob player | ||
This block will be run once when a mobile object triggers the scripted object by colliding with it. If you specify a TriggeringRefID, the block will only run when that specific reference triggers the object (assuming the reference is a mobile object); otherwise, the block will run when any mobile object triggers the scripted object. | This block will be run once when a mobile object triggers the scripted object by colliding with it. If you specify a TriggeringRefID, the block will only run when that specific reference triggers the object (assuming the reference is a mobile object); otherwise, the block will run when any mobile object triggers the scripted object. | ||
Mobile objects include actors (NPCs and Creatures), arrows, | Mobile objects include actors (NPCs and Creatures), arrows, most magic projectiles (but not bolt-shaped ones), and activators that have collision. | ||
[[Category: | [[Category: Blocktypes]] |
Latest revision as of 00:52, 6 August 2010
Syntax:
begin OnTriggerMob TriggeringRefID
Example:
begin OnTriggerMob begin OnTriggerMob player
This block will be run once when a mobile object triggers the scripted object by colliding with it. If you specify a TriggeringRefID, the block will only run when that specific reference triggers the object (assuming the reference is a mobile object); otherwise, the block will run when any mobile object triggers the scripted object.
Mobile objects include actors (NPCs and Creatures), arrows, most magic projectiles (but not bolt-shaped ones), and activators that have collision.