LaunchAmmo - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

Launch a piece of ammo from the given caster from a certain bone node, using the given weapon, at a target.

Syntax[edit | edit source]

Function LaunchAmmo(Actor akCaster, Ammo akAmmo, Weapon akWeapon, String sNodeName = "", ObjectReference akTarget = None, Projectile akProjectile, ObjectReference OriginSecondRef = None) Global Native

Examples[edit | edit source]

ANDR_PapyrusFunctions.LaunchAmmo(Game.GetPlayer(), IronArrow, Longbow, "WEAPON", NazeemRef, IronArrowProjectile)
; Have the player launch an iron arrow from the WEAPON node, using a longbow at Nazeem.

Parameters[edit | edit source]

  • akCaster: the Actor "casting" the ammo.
  • akAmmo: the Ammo ammo being used
  • akWeapon: the Weapon that's being used.
  • sNodeName: the name (string) of the skeleton bone node of the akCaster, the ammo is launched from. If empty, it will be cast from the origin point of akCaster or OriginSecondRef (only if filled.)
  • akTarget: the ObjectReference target of the ammo.
  • akProjectile: the base Projectile.
  • OriginSecondRef: an optional second ObjectReference to launch the ammo from (as proxy). If not None, sNodeName will be taken from this ref, instead of akCaster.

Return Value[edit | edit source]

None.

Note[edit | edit source]

This function is based off of fenix31415's and po3's launcharrow function

See Also[edit | edit source]