[Orxonox-commit 5374] r10037 - in code/branches/ScriptableController/data: gui/scripts levels
mkronig at orxonox.net
mkronig at orxonox.net
Thu Apr 17 16:00:49 CEST 2014
Author: mkronig
Date: 2014-04-17 16:00:49 +0200 (Thu, 17 Apr 2014)
New Revision: 10037
Modified:
code/branches/ScriptableController/data/gui/scripts/testscript.lua
code/branches/ScriptableController/data/levels/levelTry.oxw
Log:
tried to access a function of ScriptController. Failed. Put a ScriptController object in the levelTry xml file.
Modified: code/branches/ScriptableController/data/gui/scripts/testscript.lua
===================================================================
--- code/branches/ScriptableController/data/gui/scripts/testscript.lua 2014-04-17 13:41:17 UTC (rev 10036)
+++ code/branches/ScriptableController/data/gui/scripts/testscript.lua 2014-04-17 14:00:49 UTC (rev 10037)
@@ -1,5 +1,13 @@
-k = 1.2
+--k = 1.2
+--orxonox.execute("orxout message test " .. k)
-orxonox.execute("orxout message test " .. k)
+x = 1.1
+y = 2.2
+z = 3.3
+
+orxonox.ScriptController:moveToPosition(x, y, z)
+
+
+
Modified: code/branches/ScriptableController/data/levels/levelTry.oxw
===================================================================
--- code/branches/ScriptableController/data/levels/levelTry.oxw 2014-04-17 13:41:17 UTC (rev 10036)
+++ code/branches/ScriptableController/data/levels/levelTry.oxw 2014-04-17 14:00:49 UTC (rev 10037)
@@ -88,7 +88,13 @@
</ControllerDirector>
+<!-- -->
+ <ScriptController position="0,0,1">
+
+ </ScriptController>
+
+
<!-- FPS Player as destination of the dock -->
<FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-19900,0" >
<attached>
More information about the Orxonox-commit
mailing list