Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/cutscene/cutscene.lua @ 4547

Last change on this file since 4547 was 4547, checked in by snellen, 18 years ago

cuscene.lua added

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