Jump to content

  • Log In with Google      Sign In   
  • Create Account

Can't set Timer in UnrealScript


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 omm   Members   -  Reputation: 102

Like
0Likes
Like

Posted 23 July 2012 - 07:19 AM

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.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS