I have made a weapon called the Warlord Launcher. Its based on the redeemer, where the primary fire shoots a modified warhead, but the secondary fire summons tiny warlords that fly around and shoot people. (this is for original UT BTW) Everything works, except that the alt fire dosent actually use any ammo when it fires. I assume i am missing some part of the code that i need, so i had a look around and tried a few things. But it always seems to give me errors. I was hoping somebody here could help. Here is the altfire code:
i was hoping there was an easy way to fix this....
btw: im a total n00b coder so feel free to make fun of my coding if you want
Code:
function AltFire( float Value )
{
local vector start, X,Y,Z;
local Pawn P;
GetAxes(Pawn(Owner).ViewRotation,X,Y,Z);
Start = Pawn(Owner).location;
Fwar = Spawn(class'FriendlyWarlord',Owner,,Start + 115 * X,);
Fwar.Instigator = Pawn(Owner);
}
i was hoping there was an easy way to fix this....
btw: im a total n00b coder so feel free to make fun of my coding if you want