Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ScriptableController_HS17/data/gui/scripts/presentation.lua @ 11752

Last change on this file since 11752 was 10622, checked in by landauf, 9 years ago

merged branch presentationFS15merge back to trunk

  • Property svn:eol-style set to native
File size: 851 bytes
Line 
1-- Set some test variables
2x0 = 0
3y0 = 500
4z0 = 500
5
6xo = 2000 
7yo = 0
8zo = 0
9
10x1 = 3000
11y1 = 0 
12z1 = 0
13
14x2 = 2000
15y2 = 2000 
16z2 = 0
17
18-- Get a local pointer to a scriptcontroller
19local ctrl = orxonox.ScriptController:getScriptController()
20
21-- If it worked, call its "movetoposition" function
22if ctrl ~= nil then
23
24  ctrl:eventScheduler("idle", 1)
25  ctrl:eventScheduler("chl", x0, y0, z0, xo, yo, zo, 2)
26  ctrl:eventScheduler("idle", 1)
27  ctrl:eventScheduler("mal", x2, y2, z2, xo, yo, zo, 2)
28  ctrl:eventScheduler("mal", x1, y1, z1, xo, yo, zo, 2)
29  ctrl:eventScheduler("idle", 1)
30  ctrl:eventScheduler("ral", xo, yo, zo, 3, 1000, 0, 5)
31  ctrl:eventScheduler("idle", 1)
32  ctrl:eventScheduler("ral", xo, yo, zo, 2, 1000, 0, 5)
33  ctrl:eventScheduler("idle", 1)
34  ctrl:eventScheduler("ral", xo, yo, zo, 1, 1000, 0, 5)
35  ctrl:eventScheduler("idle", 1)
36
37end
Note: See TracBrowser for help on using the repository browser.