Changeset 8286 in orxonox.OLD for branches/script_engine
- Timestamp:
- Jun 8, 2006, 5:54:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/world_entities/script_trigger.cc
r8285 r8286 93 93 { 94 94 95 if((this->getAbsDirV()-target->getAbsDirV()).len() < radius)95 if( this->distance(target) < radius) 96 96 { 97 97 printf("SCRIPTTRIGGER: condition met\n"); … … 102 102 else if(callOnce && !scriptCalled) 103 103 { 104 printf("action should be executed\n"); 104 105 executeAction(); 105 106 scriptCalled = true; 106 107 } 107 108 } 109 else 110 printf("SCRIPTTRIGGER: target out of range\n"); 108 111 109 112 }
Note: See TracChangeset
for help on using the changeset viewer.