My program doesn't have bugs. It just develops random features.
User talk:Bob gneu
From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:51, 20 November 2012 by Bob gneu (Talk | contribs) (Created page with '=== Timer like behavior using Tick === <uscript>class myClass extends Actor; var float tLastCheck; var float tInterval; event Tick(float dt) { tLastCheck += dt; …')
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 }