Sign in to follow this  

Can't set Timer in UnrealScript

This topic is 1974 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

This topic is 1974 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.

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