# SpatialFear.SFDistinctCounter

Spatial Fear
Class: SFDistinctCounter
Description: Counter subclass that counts only events from distinct
triggers. If the counter is configured to reset on success
it again accepts events from triggers, that were already seen during the
first count sequence.
This is achieved by saving a reference to a trigger and only counting
it's events once in a count sequence. Event order doesn't matter.
Author: Markus Nuebel

Extends:
Modifiers:
Source code

    SpatialFear.SFDistinctCounter

%%

## Constants

%function_comment% | TRIGGER_COUNT | = | 10

## Variables

%function_comment% |  |  | Actor | arTriggers[10]
%function_comment% |  |  | bool | bFreeze
%function_comment% |  |  | float | fFreezeTimeAfterReset
%function_comment% |  |  | int | nCount
%function_comment% |  |  | bool | ResetOnSucces

## Functions

|  | bool | CheckTrigger (Actor oTrigger)
|  |  | ClearTriggerList ()
|  | bool | InList (Actor oTrigger)
|  | bool | RememberTrigger (Actor oTrigger)
|  |  | Reset ()
|  |  | timer ()
|  |  | Trigger (actor Other, pawn EventInstigator)

## Default properties

    {
         fFreezeTimeAfterReset=2.000000
    }

class file time: 12/7/2003 3:58:24 PM - creation time: 12/7/2003 4:03:39 PM
Created with UnCodeX