SwitchWeaponSet

From Dragon Age Toolset Wiki
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.

Switches the current weapon set with the given weapon set.

void SwitchWeaponSet(
object oObject,
int nWeaponSet = INVALID_WEAPON_SET
);
Parameters:
oObject
The object to have its weapon set switched
nWeaponSet
[Undocumented]
Returns:

Nothing.

Source:

script.ldf

Description

Makes the active weapon set become the one that is given in the input and generates all the necessary equip events for the new weapons. If the current weapon set is the one requested, this does nothing. There are only two weapon sets so the input value can only be 0 or 1. If no weapon set is given, the command will switch to the next set.