GetCalculatedAPCost

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin version 1.50.

Description

Returns the Action Point cost for the player doing the specified VATS attack with their currently equipped weapon (or their fists, if no weapon is equipped).

Here are the possible values for whatAttack, which determines what VATS attack to query:

DefaultAttack = 0,
SpecialAttack1 = 1, (does not work correctly outside of VATS)
SpecialAttack2 = 2 (does not work correctly outside of VATS)

If weaponOverride is set to a valid Weapon baseform, will instead use that weapon for the calculation.

Syntax

[help]
(cost:int) GetCalculatedAPCost whatAttack:int weaponOverride:baseForm{0} 

Or:

(cost:int) GetCalculatedWeaponAttackAPCost whatAttack:int weaponOverride:baseForm{0} 

Notes

  • SpecialAttack1 is either the VATS attack override for Melee Weapons (equivalent to GetWeaponVATSTraitNumeric 3), or the uppercut or stomping moves when using Unarmed weapons (as per the game setting fUpperCutAPCost).
  • SpecialAttack2 is the cross attack move when using Unarmed weapons, as per the game setting fCrossAPCost.