Page MenuHomeFeedback Tracker

this unassignItem "NVGoggles"; this removeItem "NVGoggles" has no effect on OPFOR or IND
Closed, ResolvedPublic

Description

Placing "this unassignItem "NVGoggles"; this removeItem "NVGoggles";" in the init field of a unit would normally remove it's NVGs, it appears this only works on BLUFOR and has no effect on OPFOR or IND.

Details

Legacy ID
280884508
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. In the editor, set the time to night.
  2. Place down an OPFOR or IND unit, with one or two subordinates.
  3. In the init field of each subordinate put:

this unassignItem "NVGoggles"; this removeItem "NVGoggles";

  1. No joy. They are still wearing NVGs.

For BLUFOR

  1. Repeat step 2 with a BLUFOR unit.
  2. Repeat step 3.
  3. It works! No NVGs for BLUFOR grunts

Event Timeline

Tavish edited Steps To Reproduce. (Show Details)Nov 6 2014, 5:56 AM
Tavish edited Additional Information. (Show Details)
Tavish set Category to Scripting.
Tavish set Reproducibility to Always.
Tavish set Severity to None.
Tavish set Resolution to Fixed.
Tavish set Legacy ID to 280884508.May 7 2016, 7:46 PM
Tavish added a subscriber: Tavish.
Tavish added a comment.Nov 6 2014, 5:59 AM

Apologies! PLEASE CLOSE

Immediately realised my mistake.

NVGoggles_INDEP for indy
and
NVGoggles_OPFOR for opfor

Duh.