Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 5, 2008, 6:46:43 PM (17 years ago)
Author:
landauf
Message:

added 'delay time command' console command that executes 'command' after 'time' seconds. it uses a automatically destroying timer for every execution, so you can start several delayed commands at the same time without overwriting older entries.

and this is great:

append disco.txt delay 0.0 Ambient setAmbientLightTest 1,0,0,1
append disco.txt delay 0.2 Ambient setAmbientLightTest 0,1,0,1
append disco.txt delay 0.4 Ambient setAmbientLightTest 0,0,1,1
append disco.txt delay 0.6 exec disco.txt

exec disco.txt

and you'll have disco in space… forever! :D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/orxonox/objects/Projectile.cc

    r957 r995  
    2828#include "OrxonoxStableHeaders.h"
    2929
    30 #include "../core/CoreIncludes.h"
     30#include "core/CoreIncludes.h"
     31#include "core/Executor.h"
     32
    3133#include "SpaceShip.h"
    3234#include "Explosion.h"
     
    6062        }
    6163
    62         this->destroyTimer_.setTimer(this->lifetime_, false, this, &Projectile::destroyObject);
     64        this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject)));
    6365    }
    6466
Note: See TracChangeset for help on using the changeset viewer.