Page MenuHomeFeedback Tracker

assign/unassignItem doesnt work with Binocular, Rangefinder or Laserdesignator
New, WishlistPublic

Description

While Binocular, Rangefinder or Laserdesignator are weapons and can be added and removed with add/removeWeapon commands, they can also:

  1. be added and removed with add/removeItem command
  2. returned with items command
  3. returned with assignedItems command

When they are removed from assigned slot they become "items" in the inventory. So how one goes about putting Binocular that is in the inventory to the assigned slot?

addWeapon will just add another Binocular. Did I mention this whole thing is mega confusing as well?

Solution: make Binocular, Rangefinder or Laserdesignator fully behave as items. For this make assign/unassignItem and link/unlinkItem work with these items.

Details

Legacy ID
2998361831
Severity
None
Resolution
Open
Reproducibility
Always
Category
Inventory
Steps To Reproduce

see above

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Inventory.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 2998361831.May 7 2016, 7:37 PM
Killzone_Kid added a subscriber: Killzone_Kid.

Just to add. If I save assignedItems into array and store it for later and then I want to restore those items into respective slots, Binocular, Rangefinder or Laserdesignator will fail. I will need to screen assignedItems for Binocular, Rangefinder or Laserdesignator and remove those.

Alternatively excluding Binocular, Rangefinder or Laserdesignator from items and assignedItems and add/removeItem would also solve this ticket, however at this time this may already cause too many scripts to break.

PiepMGI added a subscriber: PiepMGI.May 7 2016, 7:37 PM

As far as binocular, rangeFinder & laserDesignator are weird weapon/item the linkItem function neither works with them.
Is it so difficult to correct these "items"?