ScriptEvent:setWeapon

From Mod Wiki

Parameters

string name -- Name of the invItemDef to select.
boolean instant -- If set, the weapon will not wait for the previous weapon to lower before switching.

Result

None.

Supported By

idPlayer

Functionality

Selects a weapon by name.