Always snap to grid

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:
UT3, UDK

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

Properties

Property group 'ActorFactory'

bCanRestart

Type: bool

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

bCovert

Type: bool

only do hidden spawns

bCycleSpawnPoints

Type: bool

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

bNonPrototypeTriggerKillAll

Type: bool

trigger from anything but spawned type kills all the spawned objects

bNonPrototypeTriggerShutdown

Type: bool

trigger from anything but spawned type shuts down the factory

Default value: True

bOnlyPlayerTouched

Type: bool

only player can trigger it

bStoppable

Type: bool

stops producing when untouched

bTouchEnabled

Type: bool

(true) if false, factory not triggered via touch

Default value: True

bTriggerManually

Type: bool

spawn maxitems when triggered and then go back to waiting

Capacity

Type: int

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

Default value: 1000000

DepletedEvent

Type: name

event to trigger when factory has been depleted

FlipCovertCount

Type: int

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

Interval

Type: float

average time interval between spawnings

Default value: 1.0

ItemTag

Type: name

tag given to items produced at this factory

MaxItems

Type: int

max number of items from this factory at any time

Default value: 1

Prototype

Type: class<Actor>

the template class

TimeDistribution

Type: EDistribution

randomisation of time interval

Internal variables

InitialCapacity

Type: int


NextSpawnPoint

Type: int

Modifiers: private

next spawn point to use if bCycleSpawnPoints

NumSpawnedItems

Type: int

Modifiers: private

current number of items from this factory

NumSpawnPoints

Type: int

Modifiers: private

number of spawnspots

SpawnSpots

Type: SpawnPoint

Array size: 16

Modifiers: private

possible start locations

Default values

Property Value
bCollideActors True
bStatic False

Enums

EDistribution

DIST_Constant 
DIST_Uniform 
DIST_Gaussian 

Functions

Events

PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Other instance functions

DumpInfo

function DumpInfo (PlayerController P)


GetSpawnSpot

function SpawnPoint GetSpawnSpot (int Index)


HandleSpawneeDeath

function bool HandleSpawneeDeath (Actor Other)


KillAll

function KillAll ()


StartBuilding

function StartBuilding ()


States

Finished

Finished.Trigger

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

Overrides: Actor.Trigger (global)


Spawning

Spawning.BeginState

event BeginState ()

Overrides: Object.BeginState (global)


Spawning.Timer

event Timer ()

Overrides: Actor.Timer (global)


Spawning.UnTouch

event UnTouch (Actor Other)

Overrides: Actor.UnTouch (global)


Spawning.StartBuilding

function StartBuilding ()

Overrides: StartBuilding (global)


Spawning.Trigger

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

Overrides: Actor.Trigger (global)


Spawning.TrySpawn

function bool TrySpawn (int Start, int End)


Waiting

Modifiers: auto

Waiting.Touch

event Touch (Actor Other)

Overrides: Actor.Touch (global)


Waiting.Trigger

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

Overrides: Actor.Trigger (global)