Tunnel Module

From Savage Game Design Wiki
Jump to navigation Jump to search

Tunnel module

This page will guide you through adding the Tunnel module to your mission.

This module allows players to enter the tunnels on the outskirts of the Cam Lao Nam terrain. This module will not work for terrains other than Cam Lao Nam.


Eden Editor

To add the module to your mission all you need to do is place the module Terrain Tunnel Entrance into your mission.

This module will create an object which will be used as the entrance object for the tunnel.

The attributes for the module will allow you to change the following,

  • Tunnel
  • Garrison Size
    • This determines how large the garrison inside the tunnel will be. The formula is 8*(10*index), where index is the index of the selection in the module starting at 0. E.g. mini = 0, massive = 5, etc.
  • Garrison Side
    • This determines what side the units inside the tunnel will be spawned on, this is independent to the units intended side, so you can have US forces on OPFOR, or NVA forces on BLUFOR.
  • Garrison Type
    • This is a list of predefined units which will be randomly picked from to place in the tunnel. There is also a "Custom" option which will use the "Custom Garrison" array assigned below the "Garrison Type" attribute.
  • Enable Entry Action
    • This is a code condition which must return true for the entry action to be available to players.
  • Enable Search Action
    • This is a code condition which must return true for the search action to be available to players.
  • Enable Exit Action
    • This is a code condition which must return true for the exit action to be available to players.
  • Run on Entry
    • This is code which will run locally for players when they are teleported into the tunnel.
  • Run on Exit
    • This is code which will run locally for players when they are teleported out of the tunnel.


Configuration Files

There are no configuration files for this module.


During Gameplay

At the start of the mission there is a 5% chance for the tunnel entrance to be trapped. Players can search the tunnel entrance before entering to check for traps, they have a 75% chance of finding a trap if once exists, if they fail the check then the trap will explode killing them.

You can change if a tunnel entrance is trapped by changing the vn_tunnel_trapped variable on the entrance object. The entrance object uses the Land_vn_o_trapdoor_01 classname.

The tunnels contain the following animation sources which can be animated to block the exits on each side of the tunnel,

  • blockage_01_01_source
  • blockage_01_02_source
  • blockage_01_03_source
  • blockage_01_04_source