- Found in:
- Andrealphus PE
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
ActorakCaster
AmmoakAmmo
WeaponakWeapon
stringsNodeName=""
ObjectReferenceakTarget=NONE
ProjectileakProjectile
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)