Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

User talk:Bob gneu

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

Timer like behavior using Tick

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
}