• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Kreatyve's Suggestions

Status
Not open for further replies.

Kreatyve

Enthusiast
First, let me say what a great project this is!
I absolutely find this the most useful release in *******/WoW Emulation history.
I do would like somewhere to post suggestions, so I am making this thread to post my suggestions (No clue where else to go).
I don't know the Trinity core files very well, I am also a beginner at C++.

Methods I'd like to see:
local PositionZ = FindZFromXY(PositionX, PositionY); -- Global.
-- Finds the ground level (Position Z) for the given X and Y value.
-- Useful for: Anti-Cheats, missing Z parameters in other methods.
-- May require vmaps, if it doesn't great!
-- Added Z = GetHeight(Map, X, Y[, Phase]); Thank you Foereaper.

This is all for now.

Thanks,
Kreatyve.
 
Last edited:

Kreatyve

Enthusiast
I mean the ground's height not the unit's height. (To detect if a Unit is levitating.)

if(unit:GetHeight(unit:GetX(), unit:GetY()) ~= GetZFromXY(unit:GetX(), unit:GetY())) then
-- Unit is in the air, not on the ground.
end
 

Rochet2

Moderator / Eluna Dev
I mean the ground's height not the unit's height. (To detect if a Unit is levitating.)

if(unit:GetHeight(unit:GetX(), unit:GetY()) ~= GetZFromXY(unit:GetX(), unit:GetY())) then
-- Unit is in the air, not on the ground.
end


Get height is what you are looking for.
Get z would return the height of the unit. Note that getheight requires x And y coords
.....
it could be made global though. Then it would require map and instanceid.

http://github.com/ElunaLuaEngine/Source/issues/31
 
Last edited:
Status
Not open for further replies.
Top