Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Scripting a counting up timer.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scripting a counting up timer.

    Hello I am trying to script a counting up timer for UDK that counts up to infinity and am using visual studio to do so I was wondering how I would go about doing this?

    Some help would be appericated. Thank you.

  • #2
    Here's an example:
    Code:
    function StartCount()
    {
       SetTimer(1,true,'Countup');
    }
    function Countup()
    {
       local int count;
       count +=1;
    }
    StartCount starts the counter.
    SetTimer(1,true,'Countup);
    1. Parameter = Time between variable is updated
    2. Parameter = should looping?
    3. Parameter = counter function

    In this case it adds +1 to the variable count, every second and it will never and...

    Comment

    Working...
    X