Core.Object | +--Engine.Actor | +--Engine.Keypoint | +--Engine.LocationID
string
LocationName
LocationID
NextLocation
float
Radius
void
PostBeginPlay()
00001 //============================================================================= 00002 // LocationID - marks and names an area in a zone 00003 //============================================================================= 00004 class LocationID extends KeyPoint 00005 native; 00006 00007 var() localized string LocationName; 00008 var() float Radius; 00009 var LocationID NextLocation; 00010 00011 function PostBeginPlay() 00012 { 00013 local LocationID L; 00014 Super.PostBeginPlay(); 00015 00016 // add self to zone list 00017 if ( Region.Zone.LocationID == None ) 00018 { 00019 Region.Zone.LocationID = self; 00020 return; 00021 } 00022 00023 for ( L=Region.Zone.LocationID; L!=None; L=L.NextLocation ) 00024 if ( L.NextLocation == None ) 00025 { 00026 L.NextLocation = self; 00027 return; 00028 } 00029 } 00030 00031 defaultproperties 00032 { 00033 }