Difference between revisions of "OnTriggerMob"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Quetzilla
imported>SpookyFX
Line 7: Line 7:
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, and magic projectiles.
Mobile objects include actors (NPCs and Creatures), arrows, most magic projectiles(not bolts) and activators that have collision.


[[Category: Blocktypes]]
[[Category: Blocktypes]]

Revision as of 23:33, 5 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(not bolts) and activators that have collision.