dim3 Forum

Full Version: Player weaps not firing (from manual fire)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Script
Background first. I'm trying to implement a system where multiple weapons can be 'selected' at the same time. Needless to say, I have to do everything manually now, as using the built in weapon change, weapon fire, etc, system won't work. :P So far its worked out alright.
Only now, when it comes to firing the weapon(s), eh, nothing happens. No errors or anything, it just seems to be ignoring my fire command. :p
So if someone could take a look, that'd be great. I realize the script is probably: rather messy, inefficient, and utterly confusing. Wink Please Excuse.
You have playerFire(obj); commented out in the event function switch and you didn't change it to weaponFire();
You mean like dual wielding? Because if it's dual wielding, I sure could use that.
To Alexander: Yeah I think so. One problem is that each weapon is currently 'assigned' to a slot, and each slot cycles through like the normal weapon (in my game, its to separate bullet vs. missile weapons). So actively picking up different weapons in each 'hand' like in say Halo 2 wouldn't work.
Thinking about it though, it might be able to be done just as easily, though not with my current system.

To teh1ghool: Thanks, but thats not it. Like I said, I'm not using any of the built in weapon functions. That event never even gets called. All the keys used for weapon change and firing are set up to player_x actions. The player message function (from key down) redirects this to the appropriate weapon change or fire function. And it is actually getting to the weaponFire function, just not actually firing.
Write the name of the weapon being fired var into the console (no quotes). That might show you where the problem is....
I already have that in the fire function. :rolleyes:It returns the right name.

I have a question for brian or whoever. With fire methods, if a weapon has doesn't use multiple methods, will the various methods called in a manual fire have any effect? Also, is method 0 counted as the 'default'?
Reference URL's