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

Trigger to make doodads appear in time

Status
Not open for further replies.
Level 13
Joined
Aug 19, 2014
Messages
1,111
Hello guys can someone make a GUI for me that make a doodad appear in an area when its night time then it dissapears when its morning pls.

Anyone pls.
 
Last edited:
There exists a native to play doodad's animation. You can use it to hide/unhide it, but the pathing won't be changed.
And there is no way to do so.. so you only can change it's visuality with it.

native SetDoodadAnimation takes real x, real y, real radius, integer doodadID, boolean nearestOnly, string animName, boolean animRandom returns nothing

There is no function in GUI for it, but you can go with custom script:

An example to hide all doodads of a "doodadType" (rawcode) in range of 1000 of coordinates x/y:
  • Custom script: SetDoodadAnimation( x, y, 1000, doodadType, false, "hide", false)

to unhide them again:
  • Custom script: SetDoodadAnimation( x, y, 1000, doodadType, false, "show", false)

If there is a need to remove the doodad's pathing, you would have to change to destructables.
There is an destructable enumeration function, and you can show/hide/ressucrect/kill/create/open/close them. So pretty much anything you would need.
 
Level 13
Joined
Aug 19, 2014
Messages
1,111
Sure write it pls dude now this script must be more complicated than the trigger,anyway ill learn them some other times.
 
Level 13
Joined
Aug 19, 2014
Messages
1,111
hahaha i dont know or understand that x/y coordinates or raw code of the doodad dude, anyway thanks for the help in the info dude sorry if i dont undertand such things like that.
 
Status
Not open for further replies.
Top