Difference between revisions of "OnHitWith"

179 bytes added ,  03:00, 4 October 2015
m
Better examples
imported>Jokerine
(Filled in missing info.)
imported>Jokerine
m (Better examples)
Line 12: Line 12:
=='''Examples'''==
=='''Examples'''==


   begin OnHitWith
   begin OnHitWith '';makes the calling actor play an animation, like the targets at the beginning of Fallout 3''
    Player.Additem Caps001 10
  if isAnimPlaying == 0 
  end
  PlayGroup Forward 1
  endif
end


   begin OnHitWith WeapPowerFist
   begin OnHitWith WeapPowerFist '';gives the player caps when the calling actor is hit''
     Player.Removeitem Caps001 10
     Player.Removeitem Caps001 10
   end
   end
Anonymous user