Core.Object | +--Engine.Actor | +--Engine.Pawn | +--UMSPawn.MoviePawn | +--UMSPawn.AttatchMoviePawn
name
AttatchToPawn
Actor
AttatchedTo
void
PreBeginPlay()
Tick(float DeltaTime)
00001 class AttatchMoviePawn expands MoviePawn; 00002 00003 var() name AttatchToPawn; 00004 var actor AttatchedTo; 00005 00006 function PreBeginPlay() 00007 { 00008 local actor A; 00009 00010 foreach AllActors(class'Actor', A) 00011 { 00012 if(A.Tag == AttatchToPawn) 00013 { 00014 AttatchedTo = A; 00015 log(self$": Attatched to"@AttatchedTo); 00016 break; 00017 } 00018 } 00019 enable('Tick'); 00020 } 00021 00022 function Tick(float DeltaTime) 00023 { 00024 log(self$": Tick() called"); 00025 if(AttatchedTo != none) 00026 { 00027 SetLocation(AttatchedTo.Location); 00028 SetRotation(AttatchedTo.Rotation); 00029 } 00030 } 00031 00032 defaultproperties 00033 { 00034 }