| 07-01-2005, 03:21 AM | #1 |
I want to do an action, but only in the ground pathable portions of the map. Is there a way to do this? |
| 07-01-2005, 08:38 AM | #2 | |
Quote:
Basically you'll need 2 nested loops and the pathability check (added in patch 1.18): Code:
For Integer A = 0 to 64 (if the height is 64) Do multiple Actions
For Integer B = 0 to 64 (if the map width is 64) Do multiple Actions
If Is Location Pathable ( Location ((IntegerB - 32) * 128). ((IntegerA - 32 * 128)) ) then do multiple actions
=== do your actions here ===
|
| 07-02-2005, 08:22 AM | #3 |
So is that not in the GUI? |
| 07-02-2005, 10:56 AM | #4 | |
Quote:
What I've typed down is GUI code. You won't find it there named exactly that way because i've typed it from the top of my head, but it's all available in the GUI. Is Location Pathable is a boolean comparison. Location ( .... ) is named Convert Coordinates to Point And the coordinates will have to be converted to real with Conversion - Integer to Real |
