Difference between revisions of "Scripting Tutorial: Modify Weapon On Equip"
Jump to navigation
Jump to search
Scripting Tutorial: Modify Weapon On Equip (edit)
Revision as of 16:56, 24 April 2010
, 16:56, 24 April 2010no 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: | {{Category: Scripting Tutorials}}{{Category: Useful_Code}} |