Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8286 in orxonox.OLD for branches/script_engine


Ignore:
Timestamp:
Jun 8, 2006, 5:54:29 PM (18 years ago)
Author:
snellen
Message:

added debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/world_entities/script_trigger.cc

    r8285 r8286  
    9393{
    9494 
    95  if((this->getAbsDirV()-target->getAbsDirV()).len() < radius)
     95  if( this->distance(target) < radius)
    9696 {
    9797   printf("SCRIPTTRIGGER: condition met\n");
     
    102102  else if(callOnce && !scriptCalled)
    103103  {
     104    printf("action should be executed\n");
    104105   executeAction();
    105106   scriptCalled = true;
    106107  }
    107108 }
     109 else
     110   printf("SCRIPTTRIGGER: target out of range\n");
    108111
    109112}
Note: See TracChangeset for help on using the changeset viewer.