Cogito, ergo sum

UE2:Weapon (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:10, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UE2Runtime Object >> Actor >> Inventory >> Weapon
Package: 
Engine
Known custom subclass:
ReloadableWeaponBase
This class in other games:
RTNP, U1, UT, U2XMP, UT2004, U2, UT2003, UT3, UDK

Parent class of all weapons. FIXME - should bReplicateInstigator be true???

Properties[edit]

Property group 'MuzzleFlash'[edit]

FlashLength[edit]

Type: float

How long muzzle flash should be displayed in seconds

Default value: 0.1

FlashOffsetX[edit]

Type: float

flash center offset from centered X (as pct. of Canvas X size)

FlashOffsetY[edit]

Type: float

flash center offset from centered Y (as pct. of Canvas Y size)

MuzzleFlashSize[edit]

Type: float

size of (square) texture

MuzzleScale[edit]

Type: float

scaling of muzzleflash

Default value: 1.0

Property group 'Weapon'[edit]

FireSound[edit]

Type: Sound


MessageNoAmmo[edit]

Type: string

Modifiers: localized


Default value: " has no ammo."

SelectSound[edit]

Type: Sound


Internal variables[edit]

See Weapon internal variables.

Default values[edit]

Property Value
AttachmentClass Class'Engine.WeaponAttachment'
bReplicateInstigator True
DrawType DT_Mesh
Icon Texture'Engine.S_Weapon'
InventoryGroup 1
ItemName "Weapon"
PlayerViewOffset
Member Value
X 30.0
Z -5.0

Functions[edit]

Events[edit]

AnimEnd[edit]

simulated event AnimEnd (int Channel)

Overrides: Actor.AnimEnd


Destroyed[edit]

event Destroyed ()

Overrides: Inventory.Destroyed


PostNetBeginPlay[edit]

simulated event PostNetBeginPlay ()

Overrides: Actor.PostNetBeginPlay


RenderOverlays[edit]

simulated event RenderOverlays (Canvas Canvas)

Overrides: Inventory.RenderOverlays


TravelPostAccept[edit]

event TravelPostAccept ()

Overrides: Inventory.TravelPostAccept


Other instance functions[edit]

See Weapon instance functions.

States[edit]

See Weapon states.