Difference between revisions of "Running Scripts On Arrows"
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 ) | ||
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]] |