No Timer Event?!?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Corsix

Unreal Mapper
I'm coding a custom zone info: (class GravityZoneInfo extends ZoneInfo; )
but for reason after call SetTimer(1,true); there aren't any timer events!
Does anyone know why this could be?

EDIT: BTW. this is UT2004 latest patch folks
 
Last edited:

NovaDude

New Member
Jun 15, 2004
14
0
0
Corsix said:
I'm coding a custom zone info: (class GravityZoneInfo extends ZoneInfo; )
but for reason after call SetTimer(1,true); there aren't any timer events!
Does anyone know why this could be?

EDIT: BTW. this is UT2004 latest patch folks

Not sure whether it matter but try ' SetTimer(1.0,true); '
 

dataangel

New Member
Apr 11, 2004
184
0
0
How do you know? You setup your timer function and added a log?

I would assume it's because your actor isn't getting spawned, so set timer never happens.
 

[SAS]Solid Snake

New Member
Jun 7, 2002
2,633
0
0
40
New Zealand
www.digitalconfectioners.com
Well for a start Tick and Timer don't work when certain booleans areset like bStatic.

Not sure whether it matter but try ' SetTimer(1.0,true); '
No, not really, since it's the same. In Timers you can specify a little more accuracy say 2.5 seconds.

DataAngel
Because of what he has extended, I doubt it would be spawning issue, as this is probably a map placed actor. You shouldn't normal spawn ZoneInfo's dynamically into the game.
 
Last edited:

Asteryus

New Member
May 27, 2004
38
0
0
www.w-i-m-p.net
I'm having a simliar problem. I am trying to have ammo for my gun regen whether you have it or drop it. So, when it gets dropped, I want a timer to start adding ammo. This is where I call SetTimer:

Code:
function InitDroppedPickupFor(Inventory Inv)
{                       log("was in initdropped thing");

    W = Weapon(Inv);
    if (W != None)
    {
        AmmoAmount[0] = W.AmmoAmount(0);
        AmmoAmount[1] = W.AmmoAmount(1);
    }
    SetTimer(AmmoRegenTime, true);
    Super.InitDroppedPickupFor(None);
}

Now, the log gets printed, but then in my Timer function, I have a log as the first line and it never gets printed. Do the actor timer/settimer functions work differently than the weaponfire ones? Or is there something else I have to do? Thanks.