Changeset 8783 in orxonox.OLD for trunk/src/world_entities/script_trigger.cc
- Timestamp:
- Jun 26, 2006, 2:00:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/script_trigger.cc
r8711 r8783 21 21 #include "state.h" 22 22 23 24 CREATE_SCRIPTABLE_CLASS(ScriptTrigger, CL_SCRIPT_TRIGGER, 25 addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 26 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) 27 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY)) 28 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 29 ); 23 30 24 31 … … 40 47 scriptIsOk = false; 41 48 triggerLasts = false; 49 addToScript = false; 50 51 if(root != NULL) 52 { 53 42 54 loadParams(root); 43 55 56 if(addToScript) 57 { 58 script->addObject( "ScriptTrigger", this->getName()); 59 } 60 61 } 44 62 } 45 63 … … 60 78 void ScriptTrigger::loadParams(const TiXmlElement* root) 61 79 { 62 if(root != NULL) 63 { 80 64 81 WorldEntity ::loadParams(root); 65 82 … … 97 114 .describe("True if the script should only be called once") 98 115 .defaultValues(""); 99 } 100 116 LoadParam(root, "addtoscript", this, ScriptTrigger, setAddToScript) 117 .describe("True if this scripttrigger should be aviable in the script") 118 .defaultValues(""); 101 119 } 102 120
Note: See TracChangeset
for help on using the changeset viewer.