XIDMaps
Class Toits01

source: C:\XIII\XIDMaps\Classes\Toits01.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Info
         |
         +--XIII.MapInfo
            |
            +--XIDMaps.Map04_Toits
               |
               +--XIDMaps.Toits01
Direct Known Subclasses:None

class Toits01
extends XIDMaps.Map04_Toits

//----------------------------------------------------------- // //-----------------------------------------------------------
Variables
 HookPoint HookPointToActive
 bool bHookPointActivated


Function Summary
 void FirstFrame()
 void SetGoalComplete(int N)
     
//_____________________________________________________________________________



Source Code


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	}

End Source Code