cut3.lua

Shipped with TRX as data/trx/ship/games/tr2/scripts/cut3.lua.

local suit_change_anim = 7
local outfit_changed = false

trx.events.after_control(function()
  local lara_item = trx.lara.item
  if lara_item.anim_num >= suit_change_anim and not outfit_changed then
    trx.lara.outfit = "tr2_diving_suit"
    outfit_changed = true
  end
end)

Back to the shipped scripts