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.
Description
Description
Details
Details
- Legacy ID
- 280884508
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- In the editor, set the time to night.
- Place down an OPFOR or IND unit, with one or two subordinates.
- In the init field of each subordinate put:
this unassignItem "NVGoggles"; this removeItem "NVGoggles";
- No joy. They are still wearing NVGs.
For BLUFOR
- Repeat step 2 with a BLUFOR unit.
- Repeat step 3.
- It works! No NVGs for BLUFOR grunts
Event Timeline
Comment Actions
Apologies! PLEASE CLOSE
Immediately realised my mistake.
NVGoggles_INDEP for indy
and
NVGoggles_OPFOR for opfor
Duh.