IETS - v0.5.1
    Preparing search index...

    Function SelectWeaponAbility

    BG2 barrel re-exports.

    Generated by ts-update. Do not edit manually.

    Uses named re-exports (not export *) so esbuild can statically resolve each binding without falling back to runtime __reExport helpers for externalized .d.ts modules.

    • This action instructs the active creature to select the specified slot, and use the ability in the extended header specified by the ability parameter. The example script is from ankheg.bcs.

       IF
         See(NearestEnemyOf(Myself))
         Range(NearestEnemyOf(Myself),5)
         Delay(12)
       THEN
         RESPONSE #40
           SelectWeaponAbility(SLOT_WEAPON,0)
           RunAwayFrom(NearestEnemyOf(Myself),45)
           AttackReevaluate(NearestEnemyOf(Myself),15)
         RESPONSE #60
           SelectWeaponAbility(SLOT_WEAPON1,0)
           AttackReevaluate(NearestEnemyOf(Myself),15)
       END
      

      Parameters

      • weaponnum: Slots
      • abilitynum: number

      Returns Action