FireWeaponEx

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Makes the Actor calling reference fire a specified Weapon BaseForm's projectile(s) (equivalent to one regular shot, but some weapons like shotguns fire multiple pellets per shot).

Unlike FireWeapon, this has an optional argument to specify the Node that the shot should be spawned from.

Syntax

[help]
actorRefr.FireWeaponEx Weapon:BaseForm Node:string

Example

let rWeapon := player.GetEquippedWeapon 
player.FireWeapon rWeapon "ProjectileNode2"

See Also