I have some light (landing light) doodads in my map, and I want to be able to turn them off, or at least hide them, but there seem to be NO triggers at all that deal with doodads (except destroy and play animation).
One idea I had was that in Warcraft III you could hide a doodad by playing a "hide" animation, and reveal it again by playing a "show" animation. Does that work in Starcraft 2?
Aha! I created my own little landing light actor, and added 2 messages to it to turn it off and on with an actor message.
Problem I'm having now is how do I enter in a message for the actor to respond to??? I select "signal" and it doesn't let me enter a message. The only reason I got it working was that I copy and pasted the light messages from the flood light object.
Nevermind again... I just figured it out: go into table view and change it there (change "Signal" to "Signal.*.InsertNameHere", and press ENTER, don't click away or the change won't keep)
I realize this thread is old, but in case anybody else is looking for a simple solution to this question - here it is.
To turn on the lights:
Actor - Send actor message "Signal LightPowerUp" to all actors contained by game region (Entire map)
To turn off the lights:
Actor - Send actor message "Signal LightPowerOff" to all actors contained by game region (Entire map)
You have to manually type in the LightPowerUp/Off parts once you've selected Signal (which is under Value). Works great in maps that change the lighting between day and night.
To turn off the lights:
Actor - Send actor message "Signal LightPowerOff" to all actors contained by game region (Entire map)
You have to manually type in the LightPowerUp/Off parts once you've selected Signal (which is under Value). Works great in maps that change the lighting between day and night.
Just a small correction. I found that you needed to use "LightPowerDown" instead of "LightPowerOff"
Also, that ONLY works for those few dynamic lights that actually have that actor event in them. The other lights, like the landing lights, do NOT have this functionality. So to get around that I just hid the light. It's really dark so you can't see that there isn't any light there anymore, just that it's not on.
I have some light (landing light) doodads in my map, and I want to be able to turn them off, or at least hide them, but there seem to be NO triggers at all that deal with doodads (except destroy and play animation).
One idea I had was that in Warcraft III you could hide a doodad by playing a "hide" animation, and reveal it again by playing a "show" animation. Does that work in Starcraft 2?
Aha! I created my own little landing light actor, and added 2 messages to it to turn it off and on with an actor message.
Problem I'm having now is how do I enter in a message for the actor to respond to??? I select "signal" and it doesn't let me enter a message. The only reason I got it working was that I copy and pasted the light messages from the flood light object.
Nevermind again... I just figured it out: go into table view and change it there (change "Signal" to "Signal.*.InsertNameHere", and press ENTER, don't click away or the change won't keep)
@LazyCoder: Go
I realize this thread is old, but in case anybody else is looking for a simple solution to this question - here it is.
To turn on the lights:
Actor - Send actor message "Signal LightPowerUp" to all actors contained by game region (Entire map)
To turn off the lights:
Actor - Send actor message "Signal LightPowerOff" to all actors contained by game region (Entire map)
You have to manually type in the LightPowerUp/Off parts once you've selected Signal (which is under Value). Works great in maps that change the lighting between day and night.
Just a small correction. I found that you needed to use "LightPowerDown" instead of "LightPowerOff"
Also, that ONLY works for those few dynamic lights that actually have that actor event in them. The other lights, like the landing lights, do NOT have this functionality. So to get around that I just hid the light. It's really dark so you can't see that there isn't any light there anymore, just that it's not on.
@Jeetestu: Go
And to close or open a door?