Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.14

Description

Description:Selects the weapon to use with allowCreateShot-created shots.

The effect persists between missions (versions older than V1.54 require the -tws command line option to be specified, to use the command).

Syntax

Syntax:SetLasershotWeapon [slot, weapon]
Parameters:
  • slot: Number - Slot that can be passed through the GetMessageExtraInfo value in the WM_LBUTTONDOWN windows message (default: 0).
  • weapon: String - CfgWeapons class name to use by allowCreateShot.
Return Value:Nothing

Examples

Examples:
SetLasershotWeapon [0,"M136"];

Mission to demonstrate shot creation using mouse clicks: allowCreateShot.zip

Additional Information

See also: allowCreateShot
Multiplayer:
Problems:

Notes