EquipItem

From Dragon Age Toolset Wiki
Revision as of 02:40, 29 July 2009 by Sunjammer (Talk | contribs) (Generated by Sunjammer's Dragon Age Script Paser)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser was unable to extract and/or match all the information required and has flagged this page as containing one or more errors. The source file was not formatted correctly and the information presented is incomplete or incorrect.

This page must be reviewed by a knowledgeable scripter as it will need to be updated. Once identified, the issue in the source file should be reported to BioWare.

Please remove the {{Generated with errors}} tag once the page has been corrected.

Equips an item on a creature

int EquipItem(
object oObject,
object oItem,
int nEquipSlot,
int nWeaponSet
);
Parameters:
oObject
The object to have its weapon set switched
oItem
[Undocumented]
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:

[Undocumented]

Source:

script.ldf

Description

Equips an item from the inventory into the equiped slots. If no equipment slot is given, the item will be equipped where it best fits. If the equip slot is in the weapon set it will be equipped in the weapon set number that is given. If no weapon set number is given the active weapon set will be used. If an incorrect slot is given or an invalid object is given the function will return 0.