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

[General] Change ground texture of a building in game

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,887
You can remove the Ground Texture from your building in the Object Editor and then mimic it with triggered Ubersplats:
  • Create Ubersplat
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Unit - Create 1 Farm for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Ubersplat - Create ubersplat at (Position of (Last created unit)) of type Demon Gate with color (100.00%, 100.00%, 100.00%) and 0.00% transparency (Disable paused state, Disable skipping birth time)
      • Ubersplat - Show (Last created ubersplat)
      • Ubersplat - Change (Last created ubersplat): Enable render always state
      • Set VariableSet Ubersplat[(Custom value of (Last created unit))] = (Last created ubersplat)
  • Destroy Ubersplat
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Farm
    • Actions
      • Ubersplat - Destroy Ubersplat[(Custom value of (Triggering unit))]
You'll need a Unit Indexer to get the above triggers to work.

Or try this, but I couldn't get it to work:
  • Unit - Set Unit: (Triggering unit)'s String Field: Ground Texture ('uubs') to Value: SomePath
 
Status
Not open for further replies.
Top