Skip to content

Latest commit

 

History

History
88 lines (59 loc) · 2.1 KB

File metadata and controls

88 lines (59 loc) · 2.1 KB
tags
datatype

bandolier

Used to access information about bandolier sets on your character.

Members

{{ renderMember(type='bool', name='Active') }}

: Indicates if the bandolier set is active

{{ renderMember(type='int', name='Index') }}

: Returns the index number of the bandolier set

{{ renderMember(type='bandolieritem', name='Item', params='Index') }}

: Provides information about the specified item. Returns the Nth item in the set (Primary, Secondary, Ranged, Ammo)

{{ renderMember(type='string', name='Name') }}

: Returns the name of the bandolier set

Methods

Name Action
Activate Activate the bandolier profile

Associated DataTypes

bandolieritem

{{ renderMember(type='int', name='IconID') }}

: Returns the icon id for the item

{{ renderMember(type='int', name='ID') }}

: Returns the item id for the item

{{ renderMember(type='string', name='Name') }}

: Returns the name of the item

Examples

!!! example

=== "MQScript"

    ```
    | Activate the bandolier set named "1HB"
    /if (!${Me.Bandolier[1HB].Active}) {
        /echo Player want us to activate Bandolier: 1HB.
        /invoke ${Me.Bandolier[1HB].Activate}
    }

    | Print the weapon in the primary bandolier slot
    /echo I have a ${Me.Bandolier[1HB].Item[1].Name} in my primary bandolier slot
    ```

=== "Lua"

    ```lua
    -- Activate the bandolier set named "1HB"
    if not mq.TLO.Me.Bandolier('1HB').Active() then
        print('Player wants us to activate Bandodlier: 1HB')
        mq.TLO.Me.Bandolier('1HB').Activate()
    end

    -- Print the weapon in the primary bandolier slot
    print('I have a ', mq.TLO.Me.Bandolier('1HB').Item(1).Name(), ' in my primary bandolier slot')
    ```