If you create an IR Strobe using the createVehicle command it won't be visible, maybe not created at all. No script errors are shown.
Description
Description
Details
Details
- Legacy ID
- 1331253399
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- In editor, place a unit with NVGs and set time to night.
- In mission, open debug console and enter:
"B_IR_Grenade" createVehicle (getPosATL player);
- Activate your NVGs. Notice there's no IR strobe at your location.
Additional Information
If you add an IR Strobe to the unit by using
player addMagazine "B_IR_Grenade"
in the debug console and throw it, IR will display fine.
Event Timeline
Comment Actions
That's because there's no ammo type called "B_IR_Grenade". "B_IR_Grenade" is a magazine. You need the ammo. You're looking for "B_IRStrobe".
Comment Actions
Edit: B_IRStrobe does work, it's just not in the SIX config browser. Thanks, closing ticket.
You can create Magazines using createVehicle and they'll display/fire correctly:
e.g.
Grenade
Chemlight_green
SmokeShellGreen
That said, I did try "IRStrobe" to be sure before I published the ticket and it doesn't work either.