Unitystation: PlayerLightControl does not remove light when object is thrown

Created on 19 Oct 2019  路  2Comments  路  Source: unitystation/unitystation

Description

While holding an item that emits light, such as a handheld torch, it adds itself to a list on the player for lightsources. PlayerLightControl listens for pickup and drop to determine when to add and remove the light from the player. However, it does not listen for throws, meaning that the light it was giving will stay on the player.

Category

BUG

Steps to Reproduce

  1. Spawn a Handheld Torch
  2. Optionally, go to maint or break lights to see effect better
  3. Throw the torch
  4. Observe that you will still be radiant
Bug

Most helpful comment

I'll fix it as part of the inventory work

All 2 comments

perhaps throwing should broadcast OnRemoveFromInventory, too

I'll fix it as part of the inventory work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krille90 picture krille90  路  4Comments

Ornias1993 picture Ornias1993  路  7Comments

Raptorizer picture Raptorizer  路  8Comments

gardenBanter picture gardenBanter  路  4Comments

DooblyNoobly picture DooblyNoobly  路  4Comments