Re: How to run a script when a weapon is fired
Okay, I am almost done. It doesn't do anything when I click. No bullets, no flash, no shells, no crapping out magazines due to infinite ammo, etc. Now I have only three problems left. Then I'm done!
1. So, I put in this:
Code:
...
AddAmmo = Round
[line 53] ScriptPath = Epic.rte/Lua/pwn.lua
...
What pwn.lua does (I've tested it) is drop a rocket aiming down at high speed at every enemy on the field. So what my radio
should do is pwn everyone with rockets when you use it. However, the loading screen crashes and tells me it has an error at line 53. It said something about being unable to match something. I'm too impatient to load it again, (because for some reason mods load after everything else and it takes
forever to bugfix) so I won't find out what it really says for you unless you really need it.
EDIT: I did it again because I didn't have anything else to do; it's "could not match property".
2. My radio's sprite is screwed up. I saved it as a BMP in Photoshop, and the sprite looks fine when I'm holding it facing to the right, but it's a certain weird mix of brown, grey, and bright orange boxes and lines when looked at from the menu or when facing to the left. Did I save the BMP in some particular way that CC doesn't like?
3. One I have 2 fixed, I can add eye candy. I'll find a beeping sound to do when I fire easily, but how can I change the sprite as well for about a second after using it? Normally, it would have a red light, but for a second or so it'd switch to green. I have both BMPs already made.