CommandEquipItem

From Dragon Age Toolset Wiki
Jump to: navigation, search

This function is an equip item command constructor.

command CommandEquipItem(
object oItem,
int nEquipSlot = INVENTORY_SLOT_INVALID,
int nWeaponSet = INVALID_WEAPON_SET
);
Parameters:
oItem
the item that the object should equip
nEquipSlot
The optinal equip slot number. Use the INVENTORY_SLOT constants to specify a particular slot
nWeaponSet
The optinal weapon set number, it can be 0 or 1
Returns:

a valid command

Source:

script.ldf

Description

This function is an equip item command constructor. It creates an equip item command which can then be added to any object's command queue. This command, when processed will attempt to equip the specified item on the object.