I want the guns in C4 to reload when you hit a key
but first when I tried Button bExtra3:
simulated function Tick(float DeltaTime)
{
if (Pawn(Owner) != None && Pawn(Owner).Weapon == self)
{
if (PlayerPawn(Owner).bExtra3 != 0)
{
GoToState('NewClip');
}
}
}
I got lotss of access nones, or something or another warning in the ut log
But when I when to using an exec function in the gun, sometime after a while in game it stops working.
What do you all suggest?
but first when I tried Button bExtra3:
simulated function Tick(float DeltaTime)
{
if (Pawn(Owner) != None && Pawn(Owner).Weapon == self)
{
if (PlayerPawn(Owner).bExtra3 != 0)
{
GoToState('NewClip');
}
}
}
I got lotss of access nones, or something or another warning in the ut log
But when I when to using an exec function in the gun, sometime after a while in game it stops working.
What do you all suggest?