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

How to make a Structure able to be walked-over but not built on?

Status
Not open for further replies.
You could probably give it 0 collision size and have this trigger:

  • Building
  • Events
    • Unit - A unit finishes construction
  • Conditions
    • ((Unit-type) of (Constructed Structure)) Equal to X
  • Actions
    • Set Point1 = (Position of (Constructed structure))
    • Set Region1 = (Region centered at (Point1) with size (Y,Z)
  • Building2
  • Events
    • A unit is issued an order targeting a point
  • Conditions
    • ((Issued Order) Equal to (order(x)) --> Not sure what order would specify the building progress (try: build (?))
  • Actions
    • Set Point2 = (Target point of issued order)
    • If/ Then/ Else
      • ((Region1) contains Point2) Equal to True
    • Then
      • Game - Display to (Player(Owner of (Ordered unit)) the text "You cannot build there".
      • Sound - Play Error <gen>
    • Else
    • Custom script: call RemoveLocation (udg_Point2)
 
Status
Not open for further replies.
Top