Make a doodad transparent

Status
Not open for further replies.
Level 14
Joined
Aug 30, 2004
Messages
909
If you gave us more information we might be able to help. Do you want it completely invisible or just ghost like?

If you want a ghost effect, you could make it a unit instead of a doodad, but assign it to neutral passive, give it the "locust" ability so no one can select it, and then use triggers to set its transparency (under Art - something ...vertex coloring I think).
 
Level 8
Joined
Jun 26, 2010
Messages
530
The action is that one:

Copied from WE =]
  • Actions
    • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
Also, don't forget to add a condition in you "pick units owned by (owner of transparent trees)" functions so they don't include your locust trees.
 
Level 8
Joined
Jun 26, 2010
Messages
530
you can make a dummy tree (real destructible) with no model. So the peasants would click the dummy tree model and woulod harvest them, but would appear they're chopping the transparent tree. You can even trigger the transparent tree shaking in the axe hits.

  • Transparent Trees
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(harvest))
      • (Destructible-type of (Target destructible of issued order)) Equal to Summer Tree Wall
    • Actions
      • Unit Group - Pick every unit in (Units within 10.00 of (Position of (Target destructible of issued order)) matching ((Unit-type of (Matching unit)) Equal to Peasant)) and do (Actions)
        • Loop - Actions
          • Animation - Play (Picked unit)'s morph (i don't know if it's the correct anim) animation
      • For each (Integer A) from 1 to 9999, do (Actions)
        • Loop - Actions
          • Wait 2.00 seconds
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • -------- This condition checks if the worker is still harvesting --------
              • (Current order of (Triggering unit)) Equal to (Order(harvest))
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • -------- This condition checks if the worker is chopping or returning the lumber --------
                  • (Distance between (Position of (Target unit of issued order)) and (Position of (Triggering unit))) Less than or equal to 10.00
                • Then - Actions
                  • Unit Group - Pick every unit in (Units within 10.00 of (Position of (Target destructible of issued order)) matching ((Unit-type of (Matching unit)) Equal to Peasant)) and do (Actions)
                    • Loop - Actions
                      • Animation - Play (Picked unit)'s morph (i don't know if it's the correct anim) animation
                • Else - Actions
            • Else - Actions
              • -------- This action is triggered when the worker stops harvesting. It stops the trigger --------
              • Skip remaining actions
 
Level 10
Joined
Feb 22, 2008
Messages
619
Ah, didn't think about that.
What a load of trouble to go through for a transparent tree XD
And you'll have to make it so that when the tree dies the transparent tree will die. You
also have to make it so when someone regrows the trees it comes back to life, and so
that when someone uses that ent ability they die... and so that when someone eats a
tree...
 
Level 2
Joined
Aug 5, 2010
Messages
9
re

thank you, but what I want is just to add a random transparent tree model on a tower in my TD, any workers will harvest it. any Idea? I try to make a tree unit but the tree is white and not random size and angle
very great trigger soulburn! :)
 
Level 8
Joined
Jun 26, 2010
Messages
530
So you gonna need model editting. Load the tree win Magos Model Editor (you can find it in THV Tools ) and use the built-in .mpq brownser to search for the tree model you want to make transparent in the War3.mpq. Then go to Materials and edit the layer wich have the tree texture so it's additive/transparent. Or alpha the texture so it's semi-visible.

I have less-than-basic modelling skills, so this is not guarantee to work. =)
 
Level 8
Joined
Jun 26, 2010
Messages
530
The same path of the texture you want to replace. If you don't know the path open the model that have the texture in Mago's Model Editor and see :)
 
Status
Not open for further replies.
Top