• 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.

Light not disappearing

Status
Not open for further replies.
Level 26
Joined
Oct 2, 2011
Messages
2,490
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

  • LightningTest.w3x
    2.9 MB · Views: 93
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

  • LightningTest.w3x
    721.3 KB · Views: 33
Level 26
Joined
Oct 2, 2011
Messages
2,490
It's so much faster to test a good prepared demo than having to search through triggers, etc.^^
Sorry, I was lazy.... :D

Moving a unit that uses the light model causes the same thing to happen.
So does creating light special effects.

Damn, what is this shiet?
I guess I'll have to skip their glow. :'(
 
Status
Not open for further replies.
Top