Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8172 in orxonox.OLD for branches/script_engine


Ignore:
Timestamp:
Jun 6, 2006, 9:25:54 AM (18 years ago)
Author:
snellen
Message:

scripttrigger: added delay

Location:
branches/script_engine/src/lib/script_engine
Files:
2 edited

Legend:

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

    r8171 r8172  
    2525    LoadParam(root, "radius", this, ScriptTrigger, setRadius)
    2626        .describe("the fileName of the script, that should be triggered by this script trigger")
    27         .defaultValues("");
     27        .defaultValues(0);
     28    LoadParam(root, "delay", this, ScriptTrigger, setDelay)
     29        .describe("the delay after which the funtion sould be triggered")
     30        .defaultValues(0);
    2831    */
    2932}
  • branches/script_engine/src/lib/script_engine/script_trigger.h

    r8171 r8172  
    2222    void setCallOnce(bool call){this->callOnce = call;}
    2323    void setRadius(float radius){if(radius>0) this->radius = radius;}
     24    void setDelay(float time){if(delay>0) this->delay = delay;}
    2425    void setScript(std::string& script){this->scriptFile = script;}
    2526    void setFunction(std::string& function){this->functionName = function;}
     
    3132    bool scriptCalled;
    3233    float radius;
     34    float delay;
    3335    std::string scriptFile;
    3436    std::string functionName;
Note: See TracChangeset for help on using the changeset viewer.