OnTriggerMob

From the Oblivion ConstructionSet Wiki
Revision as of 11:03, 6 February 2006 by 10.0.1.94 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax:

 begin OnTriggerMob TriggeringRefID (optional) 

Example:

 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, and magic projectiles.