Getting an accessed none in this function.
Am I missing a stupid mistake? What could possibly be the none here?
Code:
function Touch( actor Other )
{
if (
Other.IsA('Pawn')
&& !PlayerPawn(other).IsInState('CheatFlying')
&& other.Physics!=PHYS_Swimming &&
( (LimitedToName == '')
||(Other.IsA(LimitedToName)) )
)
{
Pending = Pawn(Other);
SetTimer(0.01, false);
if ( bOnceOnly )
Disable('Touch');
}
}
Am I missing a stupid mistake? What could possibly be the none here?