When trying to script item (Binoculars, Rangefinder, Laser Designator) to binocular slot with "linkitem" command or "assignItem" command, it doesn't work.
Description
Description
Details
Details
- Legacy ID
- 4239763188
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Go to editor.
- Put "this linkitem "Binocular";" or "this addItem "Binocular"; this assignItem "Binocular";"
- launch
- look into the units inventory
Additional Information
The exported script from Virtual Arsenal uses "linkItem" command so when you are loading a chrarcter from there, it doesn't have binoculars.
Event Timeline
Comment Actions
Oh thanks. Why didn't I think of that.
But that still doesn't chnge the fact that Virtual arsenal uses this and it doesn't work.
Comment Actions
The problem with VA is the export button. The resulting script does the above, and as a result it doesn't work.
More to the point is how you know which of addweapon and additem you need for any particular thing. If you get it wrong you can have subtle failures.