Distinguishing Between Physical and Magickal Hits

From the Oblivion ConstructionSet Wiki
Revision as of 06:06, 26 April 2009 by imported>Gregbert (Discussion on Article page turned into article. Revision might be needed.)
Jump to navigation Jump to search


To determine whether an attack upon a trigger or NPC is either physical or magical, the following script should be used:

scriptname WeaponHitScript

begin OnMagicEffectHit
    return
end

begin OnHit Player
    <do stuff...>
end

The Return command terminates the entire script, and not just the block that it's called from. This can be used to have one trigger override another if they are triggered at the same time.