Gah - a solution with more questions. – EntropicLqd

UE2:ACTION_WaitOnlyForTimer (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:48, 30 November 2008 by Wormbo (Talk | contribs) (New page: {{infobox class | parent1 = ACTION_WaitForTimer | parent2 = LatentScriptedAction | parent3 = ScriptedAction | parent4 = Object | custom = yes }} A custom implementation of the stock class ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT2004 Object >> ScriptedAction >> LatentScriptedAction >> ACTION_WaitForTimer >> ACTION_WaitOnlyForTimer (custom)

Contents

A custom implementation of the stock class ACTION_WaitForTimer that doesn't suffer from the trigger completion bug.

See the description of the ACTION_WaitForTimer class for usage details.

Source code[edit]

/******************************************************************************
ACTION_WaitOnlyForTimer
Copyright (c) 2008 by Wormbo
 
Waits exclusively for timer and unlike its superclass NOT for triggering.
******************************************************************************/
 
class ACTION_WaitOnlyForTimer extends ACTION_WaitForTimer;
 
 
/**
Does NOT react to triggering. (Why should it anyway?)
*/
function bool CompleteWhenTriggered()
{
  return false;
}