Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9195 in orxonox.OLD for branches/presentation/src/world_entities


Ignore:
Timestamp:
Jul 5, 2006, 9:29:01 AM (18 years ago)
Author:
snellen
Message:

scripttrigger can be created form within a script

File:
1 edited

Legend:

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

    r9193 r9195  
    5252  this->toList(OM_COMMON);
    5353
     54  radius = 10;
    5455  returnCount = 1;
    5556  scriptFinished = false;
     
    7273 
    7374  }
     75 
    7476}
    7577
     
    137139  BaseObject* targetEntity = ClassList::getObject(target, CL_WORLD_ENTITY);
    138140
    139   if (targetEntity != NULL)
     141      if (targetEntity != NULL)
    140142  {
    141143    this->setTarget(dynamic_cast<WorldEntity*>(targetEntity));
     
    216218void ScriptTrigger::setScript(const std::string& file)
    217219{
    218 
    219220  ScriptManager* scriptManager = State::getScriptManager();
    220221  if (scriptManager != NULL)
     
    224225    if(script != NULL)
    225226    {
     227      printf("setting script to %s\n",file.c_str());
    226228      scriptIsOk = true;
    227229    }
Note: See TracChangeset for help on using the changeset viewer.