Core.Object | +--Engine.Actor | +--Engine.NavigationPoint | +--UnrealShare.Transporter
Vector
Offset
void
Trigger(Actor Other, Pawn EventInstigator)
00001 //============================================================================= 00002 // Transporter. 00003 //============================================================================= 00004 class Transporter extends NavigationPoint; 00005 00006 var() Vector Offset; 00007 00008 function Trigger( Actor Other, Pawn EventInstigator ) 00009 { 00010 local UnrealIPlayer tempPlayer; 00011 00012 // Move the player instantaneously by the Offset vector 00013 00014 // Find the players 00015 foreach AllActors( class 'UnrealIPlayer', tempPlayer ) 00016 { 00017 if( !tempPlayer.SetLocation( tempPlayer.Location + Offset ) ) 00018 { 00019 // The player could not be moved, probably destination is inside a wall 00020 } 00021 } 00022 00023 Disable( 'Trigger' ); 00024 } 00025 00026 defaultproperties 00027 { 00028 }