| 10-24-2004, 05:34 AM | #1 |
Offset is measuring a location based on another location. In Warcraft 3, all objects on the map have X and Y coordinates. (X being left to right, with Y being up to down at the default camera angle) In most cases, point 0,0 (X,Y) is around the center of the playable map area. In the world editor, you can see which point your cursor is pointing at in the bottom left corner. You will see “Point: (number, number, number)” when you move your mouse around your map. These are your cursors X, Y, and Z coordinates. (Z being how high something is, like a unit's flying height) The world editor has 3 sizes of grid you can toggle between with the G key. Each one is a power of 2 high and wide. Lets list the exact values: Small: 32 Medium: 128, or 4 Small Large: 512, or 4 Medium, or 16 Small Now, if you are wondering “How does that help me, Mr. Fury?” then let me tell you! Lets say you want a unit to move in the direction he is facing. Trigger: Unit - Order (Your unit) to Move To ((Position of (Your unit)) offset by 32.00 towards (Facing of (Your unit)) degrees)Now lets say you want to make him move diagonally up and right by 128. Trigger: Unit - Order (Your unit) to Move To ((Position of (Your unit)) offset by (128..00, 128..00))Now, the problem with this is memory leaks. That is beyond the scope of this tutorial, but let it be noted that using allot of points will cause allot of memory leaks. Edited because: I've actually spell checked and mostly re-written this tutorial. Boy, posted in '04... My spelling, and hopefully my language skills as a whole, have vastly improved.... |
| 10-24-2004, 03:42 PM | #2 |
Good tutorial... Made my understanding of offsets clearer. |
| 10-30-2004, 08:00 AM | #3 |
thx :P its an older tutorial, but nothing has chanced in this area. (and i couldent see it ever chaing dramatically 0.0) |
| 02-10-2006, 01:18 PM | #4 |
The values of the 3 sizes of grid are: Small grid: 32 Medium grid: 128 Large grid: 512 Anyway, good tutorial for people that don't know this. |
| 02-14-2006, 07:38 PM | #5 |
Thanks alot i have been trying to read decades long tutorials to find this information again THANKS ALOT ♥♥♥ |
| 02-16-2006, 12:36 AM | #6 |
The grid values I didn't know very well, but the rest you can learn at school :P |
| 05-11-2006, 04:38 PM | #7 |
yeah thanks, before i was using x=1,y=1.... lol but know i know its x=30 and y=30 thanks alot, this is usefull for flooding an areain my smoke from smoke grenade |
| 10-15-2006, 04:39 PM | #8 | ||
Quote:
Quote:
So which one is the right one? |
| 09-10-2009, 02:37 PM | #9 |
wow nice tutorial , all i know is just making a + pattern using offset hehe |
| 09-23-2009, 01:13 AM | #10 | |
Quote:
It's always power of 2. |
