## XIDMaps
Class PRock03

source: C:\XIII\XIDMaps\Classes\PRock03.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--XIII.MapInfo
                |
                +--XIDMaps.Map08_PlainRock
                   |
                   +--XIDMaps.PRock03

Direct Known Subclasses:None

class PRock03
extends XIDMaps.Map08_PlainRock

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Function Summary
`void` | `FirstFrame()`
    //_____________________________________________________________________________
`void` | `SetGoalComplete(int N)`
    //_____________________________________________________________________________
`void` | `Trigger(Actor Other, Pawn EventInstigator)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class PRock03 extends Map08_PlainRock;
    00005
    00006	var(PRock03SetUp) XIIIPawn BureauKeyHolder, MagneticPassHolder, Jo;
    00007	var(PRock03SetUp) XIIIPorte DoorToOpen;
    00008	var(PRock03SetUp) XIIIPorte DoorToOpenByJo;
    00009	var(PRock03SetUp) name KeyEvent;
    00010	var(PRock03SetUp) localized string KeyEventItemName;
    00011	var(PRock03SetUp) name JoKeyEvent;
    00012	var(PRock03SetUp) localized string JoKeyEventItemName;
    00013	var(PRock03SetUp) MagneticPassTrigger PassTrigger;
    00014	var(PRock03SetUp) name EventBureauKeyPick;
    00015	var(PRock03SetUp) name EventMagneticCardPick;
    00016	var(PRock03SetUp) name EventJoKeyPick;
    00017
    00018	//_____________________________________________________________________________
    00019	function FirstFrame()
    00020	{
    00021	    local inventory Inv;
    00022
    00023	    Super.FirstFrame();
    00024
    00025		if ( Jo != none )
    00026		{
    00027			Inv = GiveSomething(class'Keys', Jo );
    00028			Inv.Event = JoKeyEvent;
    00029			Keys(Inv).KeyCodeName = DoorToOpenByJo.UnlockItemCode;
    00030			Inv.ItemName = JoKeyEventItemName;
    00031			XIIIItems(Inv).EventCausedOnPick = EventJoKeyPick;
    00032		}
    00033
    00034	    if ( MagneticPassHolder != none )
    00035	    {
    00036			Inv = GiveSomething(class'PRock03MagneticCard', MagneticPassHolder );
    00037			Inv.Event = PassTrigger.Tag;
    00038			XIIIItems(Inv).EventCausedOnPick = EventMagneticCardPick;
    00039	    }
    00040	}
    00041
    00042	//_____________________________________________________________________________
    00043	function SetGoalComplete(int N)
    00044	{
    00045
    00046		if ( N == 99 )
    00047		{
    00048			SetPrimaryGoal(1);
    00049			return;
    00050		}
    00051	    Super.SetGoalcomplete(N);
    00052
    00053	}
    00054
    00055	//_____________________________________________________________________________
    00056	function Trigger( actor Other, pawn EventInstigator )
    00057	{
    00058		local inventory Inv;
    00059
    00060		if ( DoorToOpen.GetStateName() == 'Locked' )
    00061		{
    00062			if ( BureauKeyHolder != none )
    00063			{
    00064				Inv = GiveSomething(class'Keys', BureauKeyHolder );
    00065				Inv.Event = KeyEvent;
    00066				Keys(Inv).KeyCodeName = DoorToOpen.UnlockItemCode;
    00067				Inv.ItemName = KeyEventItemName;
    00068				XIIIItems(Inv).EventCausedOnPick = EventBureauKeyPick;
    00069			}
    00070		}
    00071	}
    00072
    00073	//_____________________________________________________________________________
    00074
    00075
    00076	defaultproperties
    00077	{
    00078	     KeyEventItemName="Key"
    00079	     JoKeyEventItemName="Key"
    00080	     EndMapVideo="cine08"
    00081	}

End Source Code