Difference between revisions of "OnHitWith"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Gribbleshnibit8
m
imported>Jokerine
(Filled in missing info.)
Line 1: Line 1:
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/index.php?title=OnHitWith OnHitWith].
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/index.php?title=OnHitWith OnHitWith].
=='''Description'''==
This block will run when the scripted target is hit by a weapon. If the parameter is left blank, a hit with any weapon will make it run.
=='''Syntax'''==
Begin OnHitWith ''WeaponID''
=='''Examples'''==
  begin OnHitWith
    Player.Additem Caps001 10
  end
  begin OnHitWith WeapPowerFist
    Player.Removeitem Caps001 10
  end
==See Also==
*[[OnHit]]
[[Category:Blocktypes]]


==Notes==
==Notes==
*Formlists may be passed as a parameter.
*Formlists may be passed as a parameter.
[[Category:Blocktypes]]

Revision as of 02:47, 4 October 2015

Link to TES4 Construction Set Wiki: OnHitWith.


Description

This block will run when the scripted target is hit by a weapon. If the parameter is left blank, a hit with any weapon will make it run.

Syntax

Begin OnHitWith WeaponID

Examples

 begin OnHitWith
    	Player.Additem Caps001 10
 end
 begin OnHitWith WeapPowerFist
    	Player.Removeitem Caps001 10
 end

See Also

Notes

  • Formlists may be passed as a parameter.