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

Ignoring Fly Height

Status
Not open for further replies.
Level 12
Joined
Mar 16, 2006
Messages
992
All you'd need to do is calculate distance from ground to flying height, subtracting the current flying height from the projected height to get the raise required to adjust your unit.

I'm sure it's possible.
 
Level 9
Joined
Jul 3, 2008
Messages
495
I have already tried everthing you say. But I found a smart way, sadly this
only work for ground units, but it dosent matter in my case.

Take for example the footman and add the crow ability and remove it again... Now set his fly height to 300 or higher than any hills/cliffs. And Maximum Pitch and Roll angle to 0.

Every 0.05 seconds use this script to fix his height
JASS:
local location loc = GetUnitLoc(unit)
local real groundZ = GetLocationZ(loc)
local real maxZ = 300
call SetUnitFlyHeight(unit,maxZ-groundZ,0)
call RemoveLocation(loc)
set loc = null
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
It's not aviable in GUI, because it may cause desync. But if you use it just to set unit fly height, it won't necesarrily split the game.

liek wtf ? How could even getting a locations Z cause desync
go away n00b
dont scare people with thing those arent even real
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
meh I dont care about what it says
there are many spells-systems-maps those use that function and none gets splitted
in fact all particle systems execute it per at least 0.04 seconds o_O
 
Level 20
Joined
Apr 22, 2007
Messages
1,960
@ Need_O2 and others,

GetLocationZ desyncs all players with low quality graphics settings, since terrain deformations are not displayed for them. So the terrain deformations when say, someone casts stomp, aren't the same for each player.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
@ Need_O2 and others,

GetLocationZ desyncs all players with low quality graphics settings, since terrain deformations are not displayed for them. So the terrain deformations when say, someone casts stomp, aren't the same for each player.

happy now ?

Anyway then

@MeKC: your problem has no solution now gtfo and never come back
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Single wont be a problem

these stuff make me angry dsync etc
I dislike my anger and I shall banish it but Im not so powerful enough
 
Status
Not open for further replies.
Top