Changeset 8199 in orxonox.OLD for branches/script_engine/src/lib/script_engine/script_trigger.cc
- Timestamp:
- Jun 7, 2006, 3:37:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/script_trigger.cc
r8178 r8199 16 16 void ScriptTrigger::loadParams(const TiXmlElement* root) 17 17 { 18 WorldEntity::loadParams(root); 19 18 20 /*{ LoadParam(root, "file", this, ScriptTrigger, setScript) 19 21 .describe("the fileName of the script, that should be triggered by this script trigger") … … 43 45 44 46 47 void ScriptTrigger::setTarget(const std::string& target) 48 { 49 BaseObject* targetEntity = ClassList::getObject(target, CL_WORLD_ENTITY); 50 51 if (targetEntity != NULL) 52 { 53 this->setTarget(dynamic_cast<WorldEntity*>(targetEntity)); 54 } 55 else 56 { 57 PRINTF(2)("Target %s for %s::%s does not Exist\n", taget.c_str(), this->getClassName(), this->getName()); 58 } 59 } 45 60 46 61 void ScriptTrigger::tick(float timestep)
Note: See TracChangeset
for help on using the changeset viewer.