Background for Skyrim SE
Member of the ANDR_PapyrusFunctions script
voidfunctionLaunchAmmo(ActorakCaster, AmmoakAmmo, WeaponakWeapon, stringsNodeName="", ObjectReferenceakTarget=NONE, ProjectileakProjectile, ObjectReferenceOriginSecondRef=NONE)NativeGlobal

Description

Documentation String

; based off of fenix31415's and po3's launcharrow function

  • akCaster: the actor "casting" the ammo.
  • akAmmo: the ammo being used
  • akWeapon: the weapon that's being used.
  • NodeSource: the name 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 target of the ammo. (might cause issues if none)
  • akProjectile: the base projectile.
  • OriginSecondRef: an optional second ref to launch the ammo from (as proxy). If not None, NodeSource will be taken from this ref, instead of akCaster.

Parameters

  1. ActorakCaster

  2. AmmoakAmmo

  3. WeaponakWeapon

  4. stringsNodeName=""

  5. ObjectReferenceakTarget=NONE

  6. ProjectileakProjectile

  7. ObjectReferenceOriginSecondRef=NONE


Examples

Auto-Generated Example

Actor myActor__akCaster
Ammo myAmmo__akAmmo
Weapon myWeapon__akWeapon
string myString__sNodeName
ObjectReference myObjectReference__akTarget
Projectile myProjectile__akProjectile
ObjectReference myObjectReference__OriginSecondRef

ANDR_PapyrusFunctions.LaunchAmmo(myActor__akCaster, myAmmo__akAmmo, myWeapon__akWeapon, myString__sNodeName, myObjectReference__akTarget, myProjectile__akProjectile, myObjectReference__OriginSecondRef)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.