Changeset 8678 in orxonox.OLD for branches/script_engine
- Timestamp:
- Jun 21, 2006, 5:01:17 PM (18 years ago)
- Location:
- branches/script_engine/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/script.cc
r8676 r8678 3 3 #include "luaincl.h" 4 4 5 //#include "file.h" 5 #include "filesys/file.h" 6 #include "util/loading/resource_manager.h" 6 7 7 8 #include "loading/load_param.h" … … 59 60 { 60 61 62 File scriptFile; 63 61 64 if(currentFile.length() != 0) 62 65 { … … 69 72 if(error == 0) 70 73 { 74 71 75 error = lua_pcall(luaState, 0, 0, 0); 72 76 73 77 if(error == 0) 74 78 { 79 printf("Test from Script::loadFile\n"); 75 80 currentFile = filename; 76 81 return true; -
branches/script_engine/src/world_entities/script_trigger.cc
r8666 r8678 181 181 if( !(script->executeFunction()) ) 182 182 printf("Error ScriptTrigger: Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 183 184 actionFinished = script->getReturnedBool(); 183 185 } 184 186 185 actionFinished = script->getReturnedBool();187 186 188 } 187 189
Note: See TracChangeset
for help on using the changeset viewer.