I'm trying to make a map with a NitrogenZone where you can't drown. I've found the relevant scripting in Pawn, but I can't seem to change it. I've tried to make a subclass of NitrogenZone, but it seems to be overridden by something:
I'm pretty new to UnrealEd and scripting.
Code:
class SafeNitrogenZone expands NitrogenZone;
event ActorEntered( actor Other )
{
Super.ActorEntered(Other);
if ( Other.IsA('Pawn') && Pawn(Other).bIsPlayer )
{
Pawn(Other).UnderWaterTime = 10000.0;
}
}
I'm pretty new to UnrealEd and scripting.