Changeset 8285 in orxonox.OLD for branches/script_engine/src/world_entities
- Timestamp:
- Jun 8, 2006, 5:53:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/world_entities/script_trigger.cc
r8271 r8285 11 11 ScriptTrigger::ScriptTrigger(const TiXmlElement* root) 12 12 { 13 this->setClassID(CL_SCRIPT_TRIGGER, "ScriptTrigger"); 14 this->toList(OM_COMMON); 15 13 16 scriptCalled = false; 14 17 scriptIsOk = false; 15 18 loadParams(root); 16 19 17 20 printf("scripttrigger generated\n"); 18 21 } 19 22 … … 89 92 void ScriptTrigger::tick(float timestep) 90 93 { 91 printf("SCRIPTTRIGGER: tick called\n");94 92 95 if((this->getAbsDirV()-target->getAbsDirV()).len() < radius) 93 96 { 97 printf("SCRIPTTRIGGER: condition met\n"); 94 98 if(!callOnce) 95 99 {
Note: See TracChangeset
for help on using the changeset viewer.