Line | |
---|
1 | trigger = ScriptTrigger() -- Create the trigger |
---|
2 | trigger:setScript("cutscene.lua") -- Tell the trigger which script to call |
---|
3 | trigger:setFunction("tick") -- Tell the trigger which scriptfunction to call |
---|
4 | trigger:setActiveOnCreation(true) -- Let the trigger call the script as soon as it is created until |
---|
5 | |
---|
6 | -- Get objects from orxonox |
---|
7 | thisscript:addObject("CameraMan", "cameraManager") |
---|
8 | |
---|
9 | |
---|
10 | -- THE tick function |
---|
11 | |
---|
12 | function tick(timestep) |
---|
13 | cameraManager:setCam("Testcam") |
---|
14 | |
---|
15 | return true |
---|
16 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.