The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:ActorFactory (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Keypoint >> ActorFactory
Package: 
U2
Direct subclass:
PawnFactory
This class in other games:
UDK, UT3

ActorFactory.uc $Author: Mfox $ $Date: 12/04/02 4:25p $ $Revision: 17 $

Properties[edit]

Property group 'ActorFactory'[edit]

bCanRestart[edit]

Type: bool

if true factory will restock itself when empty and can be triggered again

bCovert[edit]

Type: bool

only do hidden spawns

bCycleSpawnPoints[edit]

Type: bool

if true, tries to use each spawn point in order (instead of randomly)

bNonPrototypeTriggerKillAll[edit]

Type: bool

trigger from anything but spawned type kills all the spawned objects

bNonPrototypeTriggerShutdown[edit]

Type: bool

trigger from anything but spawned type shuts down the factory

Default value: True

bOnlyPlayerTouched[edit]

Type: bool

only player can trigger it

bStoppable[edit]

Type: bool

stops producing when untouched

bTouchEnabled[edit]

Type: bool

(true) if false, factory not triggered via touch

Default value: True

bTriggerManually[edit]

Type: bool

spawn maxitems when triggered and then go back to waiting

Capacity[edit]

Type: int

max number of items ever buildable (-1 = no limit)

Default value: 1000000

DepletedEvent[edit]

Type: name

event to trigger when factory has been depleted

FlipCovertCount[edit]

Type: int

after this many NPCs are spawned, flips the covertness of the factory (permanently)

Interval[edit]

Type: float

average time interval between spawnings

Default value: 1.0

ItemTag[edit]

Type: name

tag given to items produced at this factory

MaxItems[edit]

Type: int

max number of items from this factory at any time

Default value: 1

Prototype[edit]

Type: class<Actor>

the template class

TimeDistribution[edit]

Type: EDistribution

randomisation of time interval

Internal variables[edit]

InitialCapacity[edit]

Type: int


NextSpawnPoint[edit]

Type: int

Modifiers: private

next spawn point to use if bCycleSpawnPoints

NumSpawnedItems[edit]

Type: int

Modifiers: private

current number of items from this factory

NumSpawnPoints[edit]

Type: int

Modifiers: private

number of spawnspots

SpawnSpots[edit]

Type: SpawnPoint

Array size: 16

Modifiers: private

possible start locations

Default values[edit]

Property Value
bCollideActors True
bStatic False

Enums[edit]

EDistribution[edit]

DIST_Constant 
DIST_Uniform 
DIST_Gaussian 

Functions[edit]

Events[edit]

PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Other instance functions[edit]

DumpInfo[edit]

function DumpInfo (PlayerController P)


GetSpawnSpot[edit]

function SpawnPoint GetSpawnSpot (int Index)


HandleSpawneeDeath[edit]

function bool HandleSpawneeDeath (Actor Other)


KillAll[edit]

function KillAll ()


StartBuilding[edit]

function StartBuilding ()


States[edit]

Finished[edit]

Finished.Trigger[edit]

function Trigger (Actor Other, Pawn EventInstigator, optional name EventName)

Overrides: Actor.Trigger (global)


Spawning[edit]

Spawning.BeginState[edit]

event BeginState ()

Overrides: Object.BeginState (global)


Spawning.Timer[edit]

event Timer ()

Overrides: Actor.Timer (global)


Spawning.UnTouch[edit]

event UnTouch (Actor Other)

Overrides: Actor.UnTouch (global)


Spawning.StartBuilding[edit]

function StartBuilding ()

Overrides: StartBuilding (global)


Spawning.Trigger[edit]

function Trigger (Actor Other, Pawn EventInstigator, optional name EventName)

Overrides: Actor.Trigger (global)


Spawning.TrySpawn[edit]

function bool TrySpawn (int Start, int End)


Waiting[edit]

Modifiers: auto

Waiting.Touch[edit]

event Touch (Actor Other)

Overrides: Actor.Touch (global)


Waiting.Trigger[edit]

function Trigger (Actor Other, Pawn EventInstigator, optional name EventName)

Overrides: Actor.Trigger (global)