Difference between revisions of "OnHitWith"

555 bytes added ,  15:52, 10 December 2015
m
typo'd
imported>Wkilleen
 
imported>Jokerine
m (typo'd)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/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 '';makes the calling actor play an animation, like the targets at the beginning of Fallout 3''
  if isAnimPlaying == 0 
  PlayGroup Forward 1
  endif
end
 
  begin OnHitWith WeapPowerFist '';removes caps when the calling actor is hit''
    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]]
Anonymous user