| 12-04-2011, 06:03 PM | #1 |
Hi once again! So I'm making something like a projectile system (well, not quite, but let's think of it like that) I want my projectiles to fly on a vector in a given trajectory, but I also want them to ignore terrain height and cliff heights (a problem Moyack has helped me with back in this thread) This works flawlessly, EXCEPT when I send my projectile to fly above water. When it's above water, it's height seems to drop for no apparent reason and I have no idea how to fix it... ![]() I saw this solved in Elimination and Toy Soldiers... Does anybody know how did they do it? Trigger: ![]() Set TempPoint2 = next postion of my projectile bla bla![]() Custom script: set udg_HC_Z = GetLocationZ(udg_TempPoint2)![]() Unit - Add Crow Form to HC_TempUnit![]() Animation - Change HC_TempUnit flying height to (250 - HC_Z) at 0.00![]() Unit - Remove Crow Form from HC_TempUnit![]() Unit - Move HC_TempUnit instantly to TempPoint2 |
| 12-04-2011, 06:38 PM | #2 |
Your projectiles need the hover movement type. It's the only movement type where the vertical position of a unit always matches the GetLocationZ value of the terrain. |
| 12-05-2011, 02:24 PM | #3 |
Works perfectly, thanks a lot! |
