Can't set Timer in UnrealScript

Started by
-1 comments, last by omm 11 years, 9 months ago
Hi.
I'm trying to set timer using SetTimer function, but engine newver calls Timer() function.
I made simple project using this tutorial: http://udn.epicgames...QuickStart.html

My Game class:


class MyGame extends UTTeamGame;


simulated function PostBeginPlay() {
`Log("[MyGame] start");
SetTimer(1);
}
function Timer() {
`Log("[MyGame] tick");
}
defaultproperties
{
PlayerControllerClass=class'KOFA.KOFAPlayerController'
DefaultPawnClass=class'KOFA.KOFAPawn'
HUDType=class'KOFA.KOFAHUD'
bDelayedStart=false
}



Log shows "[MyGame] start" but never shows "[MyGame] tick". Why?
I checked all other function arguments(repeat, handler name) too, but it never works.

This topic is closed to new replies.

Advertisement