LaunchAmmo - ANDR PapyrusFunctions
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.
SyntaxEdit
Function LaunchAmmo(Actor akCaster, Ammo akAmmo, Weapon akWeapon, String sNodeName = "", ObjectReference akTarget = None, Projectile akProjectile, ObjectReference OriginSecondRef = None) Global NativeExamplesEdit
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.ParametersEdit
- 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 ValueEdit
None.
NoteEdit
This function is based off of fenix31415's and po3's launcharrow function