Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 6, 2014, 4:02:07 PM (11 years ago)
Author:
smerkli
Message:

Fixed the lua stuff, can now call ScriptController functions from lua.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController/data/gui/scripts/testscript.lua

    r10037 r10045  
    88
    99
    10 orxonox.ScriptController:moveToPosition(x, y, z)
     10local ctrl = orxonox.ScriptController:getScriptController()
     11--orxonox.ScriptController:moveToPosition(x, y, z)
     12--ctrl.moveToPosition(x,y,z)
     13
     14local docks = orxonox.Dock:getNumberOfActiveDocks()
     15local docklist = {}
     16for i = 0, docks-1 do
     17  table.insert(docklist, orxonox.Dock:getActiveDockAtIndex(i))
     18end
     19local dock = docklist[1]
     20if dock ~= nil then
     21    dock:dock()
     22end
     23
     24--orxonox.execute("setPause 1")
    1125
    1226
    13 
Note: See TracChangeset for help on using the changeset viewer.