Difference between revisions of "Weapon Script"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
imported>Qazaaq
(crosslinked)
 
(One intermediate revision by one other user not shown)
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 23: Line 21:
*Ammo Function [[GetAmmo - Weapon|GetAmmo]]()
*Ammo Function [[GetAmmo - Weapon|GetAmmo]]()
**Gets the ammo used by this weapon.
**Gets the ammo used by this weapon.
== F4SE Member Functions ==
*ObjectMod Function [[GetEmbeddedMod - Weapon|GetEmbeddedMod]]()
**Gets this weapon's embedded mod.
*[[Owner Struct - InstanceData|Owner]] Function [[GetInstanceOwner - Weapon|GetInstanceOwner]]()
**Gets this weapon's InstanceData owner.
*Function [[SetEmbeddedMod - Weapon|SetEmbeddedMod]](ObjectMod akMod)
**Sets this weapon's embedded mod.


== 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