When I try to remove the NVGoggles from Independent units based off of
"this unassignItem "NVGoggles"; this removeItem "NVGoggles";"
It does not work, however it will work when I try it with any other side based unit.
Description
Description
Details
Details
- Legacy ID
- 325147
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Always
- Category
- Inventory
Steps To Reproduce
1.Place an Independent unit onto the map. Ex. Independent>AAF>Rifleman
2.In the initialization field, put in
this unassignItem "NVGoggles"; this removeItem "NVGoggles";
- Place any unit from any other side or faction that spawns with NVGoggles
- Put the same code in from before into the new unit's initialization field.
- Preview the map and notice that while the other unit who normally has NVGoogles no longer has them, the Independent unit still has his.
Additional Information
I haven't tried this with civ units, but with Opfor and Blufor units, their NVGoogles can be removed from initialization.
Event Timeline
Comment Actions
Independent and Opfor now have their own NVGoggles. Opfor uses "NVGoggles_OPFOR" and ind use "NVGoggles_INDEP". Blufor still uses "NVGoggles". The only noticeable difference is the side parts of the blufor NVGs are (still) tan, opfor are black and independent are green.
You will have to use
this unassignItem "NVGoggles_INDEP"; this removeItem "NVGoggles_INDEP";