Cogito, ergo sum

User talk:Bob gneu

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search

Timer like behavior using Tick[edit]

class myClass 
    extends Actor;
 
var float tLastCheck;
var float tInterval;
 
event Tick(float dt)
{
    tLastCheck += dt;
 
    if (tLastCheck < tInterval)
        return;
 
    tLastCheck -= tInterval;
    // do something here;
}
 
defaultproperties
{
    tInterval = 5.0f // 5 seconds
}