# SpatialFear.SFLeaveLevelTrigger

00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 |
    //=============================================================================
    // Spatial Fear
    // Class: SFLeaveLevelTrigger
    // Descripton: Subclasses of SFTrigger, leaves the current level, by simulating
    //				an ESC keypress.
    //
    // Author: Markus Nuebel
    //=============================================================================

    class SFLeaveLevelTrigger extends SFTrigger;

    // Overwritten, to add the special health setting here
    function Touch( actor Other )
    {
    	if( IsRelevant( Other ) )
    	{
    		if(Other.IsA('SFPlayer'))
    		{
    			// Simulate the event
    			WindowConsole(SFPlayer(Other).Player.Console).bQuickKeyEnable = False;
    			WindowConsole(SFPlayer(Other).Player.Console).LaunchUWindow();
    		}
    	}
    	// Call to base class
    	Super.Touch(Other);
    }

    defaultproperties
    {
         bTriggerOnceOnly=True
    }

class file time: 12/7/2003 3:58:24 PM - creation time: 12/7/2003 4:03:45 PM
Created with UnCodeX