TeleporterZone isn't calling parent's event ActorEntered()

Discussions about Coding and Scripting
User avatar
Barbie
Godlike
Posts: 3292
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

TeleporterZone isn't calling parent's event ActorEntered()

Post by Barbie »

TeleporterZone isn't calling parent's event ActorEntered(). :pfff:
But I'm afraid fixing this will break compatibility…

Code: Select all

class ZoneInfo extends Info native nativereplication;

event ActorEntered( actor Other ) {
...
	if( Pawn(Other)!=None && Pawn(Other).bIsPlayer )
		if( ++ZonePlayerCount==1 && ZonePlayerEvent!='' )
			foreach AllActors( class 'Actor', A, ZonePlayerEvent )
				A.Trigger( Self, Pawn(Other) );

Code: Select all

class TeleporterZone extends ZoneInfo;

event ActorEntered( actor Other ) {
	if ( myTeleporter != None )
		myTeleporter.Touch(Other);
}
"If Origin not in center it be not in center." --Buggie