Advanced - CodeMaster and CodeTrigger

A CodeMaster is an Actor that acts as a key code manager. In effect, you enter a code like you would into a keypad. If the code is correct, the main event activates.

This tutorial covers how to create a basic trigger system with the CodeMaster actor.

A basic step-by-step set up of a code system:

  1. In your map, add a CodeMaster by navigating in your Actor Browser to Info->CodeMaster
  2. Navigate to Triggers in your Actor Browser and add up to 6 CodeTrigger actors, depending on how long your code will be
  3. Add an ElevatorMover for every CodeTrigger you added.
  4. Link pairs of ElevatorMover and CodeTrigger actors by setting the Event property of the CodeTrigger to the Tag of the ElevatorMover
  5. Rename the Tag of the CodeMaster. Set all the CodeTrigger CodeMasterTag value to the Tag of the CodeMaster
  6. In each CodeTrigger properties, set the CodeTrigger->Code value to the value in your keycode associated with that actor. So if your code is 123, one CodeTrigger should have a Code of 1, another will have 2, etc.
  7. In the CodeMaster properties, set your combination code in CodeMaster->OrderCode. This must be done in order.
  8. In the CodeMaster properties, set the CodeMaster->NumElements property to the number of CodeTriggers you have
  9. In the CodeMaster properties, set the CodeMaster->MainEvent property to the Tag of the main event Actor to be activated
  10. For the MoverTags, set each value to the ElevatorMover that corresponds to the number of the code in the CodeTrigger, so if your code is 123, and your CodeTrigger of Code 1 has an ElevatorMover Tagged 'mover1', MoverTags[0] must be 'mover1'
  11. Set up the keyframes of your movers
  12. Set your ElevatorMovers' Object->InitialState property to TriggerToggle (or something that isn't a Bump Event activation)
  13. Playtest your map

<