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

no edit summary
imported>Demolishun
imported>Demolishun
 
(6 intermediate revisions by the same user not shown)
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: Scripting]]
[[Category: Tutorials]]
[[Category: Tutorials]]
[[Category: Scripting_Tutorials]]
[[Category: Useful Code]]
[[Category: Useful Code]]
Anonymous user