Page MenuHomeFeedback Tracker

Can't script binoculars to their slot.
New, WishlistPublic

Description

When trying to script item (Binoculars, Rangefinder, Laser Designator) to binocular slot with "linkitem" command or "assignItem" command, it doesn't work.

Details

Legacy ID
4239763188
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Go to editor.
  2. Put "this linkitem "Binocular";" or "this addItem "Binocular"; this assignItem "Binocular";"
  3. launch
  4. 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

paul_e edited Steps To Reproduce. (Show Details)Jul 7 2014, 9:36 PM
paul_e edited Additional Information. (Show Details)
paul_e set Category to Scripting.
paul_e set Reproducibility to Always.
paul_e set Severity to None.
paul_e set Resolution to Open.
paul_e set Legacy ID to 4239763188.May 7 2016, 6:55 PM
paul_e edited a custom field.
paul_e added a subscriber: paul_e.May 7 2016, 6:55 PM

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.

R34P3R added a subscriber: R34P3R.May 7 2016, 6:55 PM
R34P3R added a comment.Jul 5 2015, 9:24 PM

Whats wrong with Virtual Arsenal ? I can add "Binocular" without problems

MaHuJa added a subscriber: MaHuJa.May 7 2016, 6:55 PM
MaHuJa added a comment.Jul 6 2015, 5:58 PM

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.