Difference between revisions of "Scripting Tutorial: Modify Weapon On Equip"

Jump to navigation Jump to search
no edit summary
imported>Demolishun
imported>Demolishun
Line 80: Line 80:
The first one "sort of" works in the onEquip function.  It doesn't do what it is supposed to, but it sort of works.  But the first one would not work at all in the code I laid out above.  The second one is the proper way to do it for an objectID and works well.  For what I was doing the second one is what I should have been using.  Unfortunately it took a few hours to understand one was a 'refID' and the other was a 'objectID'.  Anyway, that is how we learn...
The first one "sort of" works in the onEquip function.  It doesn't do what it is supposed to, but it sort of works.  But the first one would not work at all in the code I laid out above.  The second one is the proper way to do it for an objectID and works well.  For what I was doing the second one is what I should have been using.  Unfortunately it took a few hours to understand one was a 'refID' and the other was a 'objectID'.  Anyway, that is how we learn...


{{Category: Scripting Tutorials}}{{Category: "Useful Code"}}
{{Category: Scripting Tutorials}}{{Category: Useful_Code}}
Anonymous user

Navigation menu