I have been lately refactoring some code, making it way more compact thanks to the almighty power of ZScipt. Yet, while I can do a lot by now, i still am somtimes stumped with some features.
I am working on a weapon, that is a wrapper of many potential weapon (consolidiating over 100 actual weapons into one). While everything works as I would like, i still need to have a few different varieties of how the weapon looks (depending on meta-data)
So the main question is: How do you change a weapon sprite via script? I am able to change a projectile sprite with code like this:
Code: Select all
Sprite = GetSpriteIndex("COOL");
However, this does not work with weapons. I'd wager, that there is a different variable than sprite for that, but I was unable to find it.