Sign in to follow this  
omm

Can't set Timer in UnrealScript

Recommended Posts

Hi.
I'm trying to set timer using SetTimer function, but engine newver calls Timer() function.
I made simple project using this tutorial: [url="http://udn.epicgames.com/Three/BasicGameQuickStart.html"]http://udn.epicgames...QuickStart.html[/url]

My Game class:

[CODE]
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
}

[/CODE]

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this