-- Create the trigger trigger = ScriptTrigger() trigger:setName("maintrigger") trigger:setScript("spaceship_hangar.lua") trigger:setFunction("tick") trigger:setActiveOnCreation(true) -- THE tick function function tick(timestep) --io.write("Hangarscript called \n") return false end