Alt Fire not using ammo

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

timmypowergamer

New Member
Jul 6, 2004
27
0
0
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:

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 :)