Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 |
//============================================================================= // CodeTrigger. //============================================================================= class CodeTrigger extends Triggers; // Used along with an ElevatorMover (which is its visual cue), it sends // a code to the CodeMaster object which tries to match up a pattern // of a set of CodeTrigger activations, whereupon the CodeMaster executes // a special event. // If the order of triggerings is invalid, the set of ElevatorMovers are // reset to the initial state. M var() int Code; // What is the label code of this trigger/mover with respect to the sequence var() name CodeMasterTag; // The Tag of the codemaster object to use var CodeMaster cdMaster; var ElevatorMover elMover; function BeginPlay() { local CodeMaster cm; local ElevatorMover em; // Find the CodeMaster who's Tag matches the CodeMasterTag if( CodeMasterTag != '' ) foreach AllActors( class 'CodeMaster', cm, CodeMasterTag ) cdMaster = cm; // Find the ElevatorMover who's Tag matches this triggers Event if( Event != '' ) foreach AllActors( class 'ElevatorMover', em, Event ) elMover = em; if( cdMaster == None ) log("No CodeMaster object found."); if( elMover == None ) log("No ElevatorMover object found."); } function Touch( actor Other ) { // Set the Elevator Mover to Keyframe 1 elMover.MoveKeyframe( 1, elMover.MoveTime ); // Notify the CodeMaster that it has been triggered cdMaster.NotifyTriggered( Code ); } defaultproperties { } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |