Difference between revisions of "Running Scripts On Arrows"

61 bytes added ,  14:01, 9 October 2006
Adding to Useful Code
imported>Scruggs
(Work in Progress)
imported>Scruggs
(Adding to Useful Code)
Line 175: Line 175:


   set trigRef to getActionRef
   set trigRef to getActionRef
   set baseObject to trigRef.getBaseObject
   if ( trigRef.IsAmmo )
  player.addItem baseObject 1
    set baseObject to trigRef.getBaseObject
    player.addItem baseObject 1
  endif
end
end
</pre>
</pre>
Line 244: Line 246:


Admittedly, that script isn't terribly useful in itself, but it should give you a starting point in setting up your own scripts on arrows.
Admittedly, that script isn't terribly useful in itself, but it should give you a starting point in setting up your own scripts on arrows.
[[Category:Useful_Code]]
Anonymous user