Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Can't set Timer in UnrealScript

4: Adsense

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   

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.




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.