Core.Object | +--Engine.Actor | +--Engine.Info | +--XIII.MapInfo | +--XIDMaps.Map04_Toits | +--XIDMaps.Toits01
HookPoint
HookPointToActive
bool
bHookPointActivated
void
FirstFrame()
SetGoalComplete(int N)
//_____________________________________________________________________________
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class Toits01 extends Map04_Toits; 00005 00006 VAR() HookPoint HookPointToActive; 00007 VAR bool bHookPointActivated; 00008 00009 FUNCTION FirstFrame() 00010 { 00011 if ( HookPointToActive!=none ) 00012 { 00013 HookPointToActive.bInteractive=false; 00014 } 00015 Super.FirstFrame(); 00016 } 00017 00018 //_____________________________________________________________________________ 00019 FUNCTION SetGoalComplete(int N) 00020 { 00021 switch ( N ) 00022 { 00023 case 91: 00024 SetPrimaryGoal(1); 00025 break; 00026 case 92: 00027 SetPrimaryGoal(2); 00028 break; 00029 case 99: 00030 if ( !bHookPointActivated ) 00031 { 00032 bHookPointActivated = true; 00033 00034 if ( HookPointToActive!=none ) 00035 { 00036 HookPointToActive.bInteractive=true; 00037 } 00038 } 00039 00040 00041 00042 } 00043 Super.SetGoalComplete(N); 00044 } 00045 00046 //_____________________________________________________________________________ 00047 00048 00049 00050 00051 defaultproperties 00052 { 00053 }