Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/presentation.lua @ 11576

Last change on this file since 11576 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
RevLine 
[10499]1-- Set some test variables
[10617]2x0 = 0
3y0 = 500
4z0 = 500
[10499]5
[10617]6xo = 2000 
7yo = 0
8zo = 0
[10499]9
[10617]10x1 = 3000
11y1 = 0 
12z1 = 0
[10499]13
[10617]14x2 = 2000
15y2 = 2000 
16z2 = 0
[10499]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)
[10617]25  ctrl:eventScheduler("chl", x0, y0, z0, xo, yo, zo, 2)
[10499]26  ctrl:eventScheduler("idle", 1)
[10617]27  ctrl:eventScheduler("mal", x2, y2, z2, xo, yo, zo, 2)
28  ctrl:eventScheduler("mal", x1, y1, z1, xo, yo, zo, 2)
[10499]29  ctrl:eventScheduler("idle", 1)
[10617]30  ctrl:eventScheduler("ral", xo, yo, zo, 3, 1000, 0, 5)
[10499]31  ctrl:eventScheduler("idle", 1)
[10617]32  ctrl:eventScheduler("ral", xo, yo, zo, 2, 1000, 0, 5)
[10499]33  ctrl:eventScheduler("idle", 1)
[10617]34  ctrl:eventScheduler("ral", xo, yo, zo, 1, 1000, 0, 5)
[10499]35  ctrl:eventScheduler("idle", 1)
36
37end
Note: See TracBrowser for help on using the repository browser.