• Advertisement
Sign in to follow this  

Can't set Timer in UnrealScript

This topic is 2007 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement