UE1 - UT NitrogenZone w/o drowning

  • 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.

worthawholebean

New Member
Jul 22, 2008
2
0
0
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:
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.
 

evilmrfrank

Banned
Apr 22, 2005
1,631
0
36
35
Florida, US
www.evilmrfrank.com
I might be wrong as I haven't used the UT1 editor in years but wasn't there an option under the zones properties that controlled how long you could live in them without running out of air? I don't mean in scripting I mean in editor.