1-- OPENTOMB TRIGGER FUNCTION SCRIPT
2-- by Lwmte, April 2015
3
4--------------------------------------------------------------------------------
5-- This file contains core trigger routines which are used to initialize, run
6-- and do other actions related to trigger array.
7-- Trigger array itself is generated on the fly from each level file and is not
8-- visible for user. You can turn on debug output of trigger array via config
9-- command "system->output_triggers = 1".
10--------------------------------------------------------------------------------
11
12dofile(base_path .. "scripts/trigger/flipeffects.lua")  -- Initialize flipeffects.
13
14-- Clear dead enemies, if they have CLEAR BODY flag specified.
15
16function clearBodies()
17    print("CLEAR BODIES");
18end
19
20-- Plays specified cutscene. Only valid in retail TR4-5.
21
22function playCutscene(cutscene_index)
23    if(getLevelVersion() < TR_IV) then return 0 end;
24    print("CUTSCENE: index = " .. cutscene_index);
25end