Background for Fallout 4
Member of the Weapon script
voidfunctionFire(ObjectReferenceakSource, AmmoakAmmo=NONE)Native

Description

Wiki Description

Fires the weapon from the the specified object reference, using the specified ammo.

Documentation Comment

Fire this weapon base object from the specified source


Caveats


Parameters

ObjectReferenceakSource

CK Wiki Description

The ObjectReference to fire the weapon from.

AmmoakAmmo=NONE

CK Wiki Description

The Ammo to use. If None is passed, it will use the current ammo on the reference (this will throw a warning if the reference is not an actor).


Examples

; Have the bandit fire his bow with his current ammo
Bow.Fire(Bandit)
; Have the box fire the bow with the poison arrows ammo
Bow.Fire(Box, PoisonArrows)

Auto-Generated Example

ObjectReference myObjectReference__akSource
Ammo myAmmo__akAmmo

myWeapon__toCallFunctionOn.Fire(myObjectReference__akSource, myAmmo__akAmmo)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.