• 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] How to change a location pathing ingame?

Status
Not open for further replies.

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
i need to change the pathing type of location, and detect the pathing type of location.
i need to modify terrain on my map,
changing terrain with water to ground and back to normal...
the pathing is easily detected via GUI but if i try to use GUI to change type...
it actually does nothing.
example set terrain at loc to walkable = false, the unit can still walk and when i detect pathing at loc it say walkable = true even though i did use trigger to put it to walkable false...

so is it possible to really change terrain pathing in game?
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
I remember it working last time I checked.

Remember every cell is 32x32 in size, so you have to make many of them unwalkable if you want any visible effect.

EDIT:
  • For each (Integer A) from 1 to 10, do (Actions)
    • Loop - Actions
      • For each (Integer B) from 1 to 10, do (Actions)
        • Loop - Actions
          • Environment - Set terrain pathing at ((Center of Region 000 <gen>) offset by ((32.00 x (Real((Integer A)))), (32.00 x (Real((Integer B)))))) of type Walkability to Off
Works fine.

Make sure the clean the leaks when you do this.
 

Attachments

  • WalkabilityTest.w3x
    16.4 KB · Views: 36

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
thanks i will try that...

since terrain painting has bigger size 128x128
i did paint and path, but maybe since path is 32x32 that wasn't enough.

thanks for explanation i will try again.
 
Status
Not open for further replies.
Top