Page MenuHomeFeedback Tracker

A scripting command to select throwable muzzle and magazine
Feedback, NormalPublic

Description

I'd like to request a scripting command to select player's throwable muzzle and magazine, as there seem to be no way to do that currently.

Suggested syntax and names:
BOOL = ENTITY selectThrowable [MAGAZINE, MUZZLE (optional)] (complement of selectWeapon)
BOOL = ENTITY setCurrentThrowable [MAGAZINE, MUZZLE (optional)] (complement of currentThrowable)

I think muzzle should be optional to save scripter a hassle of getting both magazine and the muzzle, have the engine search for the muzzle by itself. Maybe even a shorter ENTITY selectThrowable MAGAZINE syntax. Having bool return of whether provided muzzle+mag was found could be useful too.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

SaMatra created this task.Oct 8 2023, 8:09 AM
h- added a subscriber: h-.Oct 8 2023, 8:46 AM

When do you need the muzzle param?

When do you need the muzzle param?

Not sure about real use case, but can't you have 2 different muzzles that take same 1 grenade magazine somehow? I guess we might ignore this hypothetical scenario and just select by magazine.

no, dont think so, you get a bunch of throw muzzles always present, specific for the throwable magazine

rev 151061 selectThrowable

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Oct 9 2023, 12:10 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

Looks like some problem with the command @ T176248

no, dont think so, you get a bunch of throw muzzles always present, specific for the throwable magazine

Looks like IR grenades are exception:

		class IRGrenade: ThrowMuzzle {
			displayName = "IR Grenade";
			magazines[] = {"B_IR_Grenade","O_IR_Grenade","I_IR_Grenade","O_R_IR_Grenade","I_E_IR_Grenade"};
			cursorSize = 1;
		};

One muzzle, lots of magazines.

Yeah, sorry for the confusion, the muzzle is added when you add magazine

This comment was removed by BIS_fnc_KK.
dedmen set Ref Ticket to AIII-56020.Dec 7 2023, 6:23 PM