Fixing Falling Pawns

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

War Penguin

In A War With The Penguins .. Im Loseing
Apr 3, 2005
52
0
0
Duluth, GA
www.freewebs.com
Well i have been set up to fix monsters falling off the map so i thought i could do this like a translocator but it seems it is at a whole other world can anyone get me started on this ? by explaining how i could (if i could) when monsters fall for a certain amount of time they are teleported to a random playerstart
 

War Penguin

In A War With The Penguins .. Im Loseing
Apr 3, 2005
52
0
0
Duluth, GA
www.freewebs.com
Code:
class MutFallingFix extends Mutator;

var int FallingTime;
var bool TimeForIt;

function PostBeginPlay()
{
SetTimer(0.5, true)
}

function Timer(Monster M)
{
        FallingTime = Level.TimeSeconds -= 6;

	
	foreach DynamicActors(class'Monster', M, FallingTime)
	{
	if(State'Falling' == FallingTime)
	{
		bTimeForIt=True;

		Teleport();	

	}
        } 
}

function Teleport()
{

Gotostate('Dead');


}
	



defaultproperties
{
friendlyname="Fix"
description="Fixes monsters falling off the map"
}
Heres what i got i get this as an error: c:\UT2004\FallingFix\Classes\MutFallingFix.uc(12) : Error, Redefinition of 'function Timer' differs from original in Actor
 
Last edited:

eblade

New Member
Jan 29, 2006
113
0
0
you need to make that

function Timer() {
local Monster M;

super.Timer();
...
}