Difference between revisions of "Weapon Script"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>ShadeMe
(Add missing F4SE member functions)
imported>Qazaaq
(crosslinked)
 
Line 1: Line 1:
[[Category:Scripting]]
'''Extends:''' [[Form Script]]
[[Category:Papyrus]]
<BR/>
[[Category:Script Objects]]
'''Editor:''' [[Weapon]]
 
'''Extends:''' [[Form Script (Papyrus)]]


Script for the manipulation of weapon base objects.
Script for the manipulation of weapon base objects.
Line 27: Line 25:
*ObjectMod Function [[GetEmbeddedMod - Weapon|GetEmbeddedMod]]()
*ObjectMod Function [[GetEmbeddedMod - Weapon|GetEmbeddedMod]]()
**Gets this weapon's embedded mod.
**Gets this weapon's embedded mod.
*[[Owner Struct - InstanceData|Owner]] Function [[GetInstanceOwner - Weapon|GetInstanceOwner]]()
*[[Owner Struct - InstanceData|Owner]] Function [[GetInstanceOwner - Weapon|GetInstanceOwner]]()
**Gets this weapon's InstanceData owner.
**Gets this weapon's InstanceData owner.
*Function [[SetEmbeddedMod - Weapon|SetEmbeddedMod]](ObjectMod akMod)
*Function [[SetEmbeddedMod - Weapon|SetEmbeddedMod]](ObjectMod akMod)
**Sets this weapon's embedded mod.
**Sets this weapon's embedded mod.
Line 36: Line 32:
== Events ==
== Events ==
None
None
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]
[[Category:Items]]

Latest revision as of 01:00, 28 October 2017

Extends: Form Script
Editor: Weapon

Script for the manipulation of weapon base objects.

Definition[edit | edit source]

ScriptName Weapon extends Form Native Hidden

Properties[edit | edit source]

None

Global Functions[edit | edit source]

None

Member Functions[edit | edit source]

  • Function Fire(ObjectReference akSource, Ammo akAmmo)
    • Fires this weapon from the specified source object.
  • Ammo Function GetAmmo()
    • Gets the ammo used by this weapon.

F4SE Member Functions[edit | edit source]

Events[edit | edit source]

None