• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Light not disappearing

Status
Not open for further replies.
Level 26
Joined
Oct 2, 2011
Messages
2,484
Hi!
I have a unit with an attached torchlight.
When the unit moves, and the player doesn't see it move, the lightning effect remains where it was last seen by the player (or where it was on map init if the player have nod not seen it), and is only moved to the unit it is attached to when that unit becomes visible to the player.
PS: The camera is locked to the player unit if that means anything.

How do one fix this?

EDIT: Also, is it possible to preload lights? I have one big light that covers a room. However, it isn't "turned on" until I see its source on screen. When I leave the room, the lightning remains turned on.
 

Attachments

Last edited:
It's so much faster to test a good prepared demo than having to search through triggers, etc.^^ Here is new demo attached.

So, the situation is the attached effect makes some light, but its position gets only updated when the unit visible to the player. When the unit gets for example out of screen, the attached effect will stay at border somewhere, and won't move on with the unit anymore. That's all still visible to the player.

Not sure, maybe one can try to work with unit sight radius and fog of war instead of working with custom light effects, but you probably don't want that. Or maybe units can be periodically moved along with the spiders to mimic such light. Sounds a bit costy, but might maybe work.
 

Attachments

Status
Not open for further replies.
Back
Top