• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Destructible in map script

Status
Not open for further replies.
Level 9
Joined
Mar 26, 2017
Messages
376
For preplaced units, the World Editor generates Create Unit or BlzCreateUnitWithSkin lines that are run at Map Init. The same goes for many other setting in the World Editor.

I don't see code in the map script for preplaced destructibles. Anyone knows where this information is stored?
 
Level 9
Joined
Mar 26, 2017
Messages
376
I was mostly curious.

I was looking a bit into loading parts of my map during a 'hero select' screen, so that initial load times are reduced. But it seems destructibles have a very short load time anyway, even if there are thousands.
 
Level 12
Joined
Jan 30, 2020
Messages
875
Only destructables that are excplictily used in a GUI trigger get into the output script. What do you want to achieve?

You could probably exploit what he just said to get them to be generated in the map script.
Then you'd have the choice :)
 
Status
Not open for further replies.
Top