Mission Maker Teleport

From F2 EN
Jump to: navigation, search

Description

When making a mission, and particularly when conducting testing on a local machine, the mission maker (and any fellow testers) will often want to observe the action from different locations on the map. When F2's Debug Mode is enabled, the Mission Maker Teleport component automatically provides the mission maker (and any other human players) with a reusable teleport feature accessed from the action menu.

Required files

All the code associated with this component is found in:

  • init.sqf
  • f\common\f_mapClickTeleport.sqf
  • f\common\f_missonMakerTeleport.sqf

How to activate

Open the file init.sqf and look for the code segment entitled:

// F2 - Mission Maker Teleport

Edit the following lines, removing the // at the start of each line:

// f_missionMakerTeleport = 0;
// [] execVM "f\common\f_missionMakerTeleport.sqf";

How to use

Automatic usage

This component is enabled automatically the moment you enable F2's Debug Mode (by selecting a Debug option in the mission parameters screen). To use the component select the Teleport action in your action menu and follow the on-screen instructions.

Use outside debug mode

This component can be enabled outside the debug mode. Open the init.sqf file and look for the code segment entitled:

// F2 - Mission Maker Teleport

Edit the following line, changing the value of f_missionMakerTeleport to 1.

f_missionMakerTeleport = 0;

Tips

  • This is a great tool for scouting our mission locations in the editor!
  • If you use this component, be sure to disable it before releasing your mission.

Credits

  • Norrin