- Joined
- Jul 21, 2015
- Messages
- 292
Hello all,
I have a system of triggers that function only half-way in my goal towards creating a movement system for flying with arrow key. I will attach a map that shows it off. But there are some issues with my triggers currently.
What Works:
*Unit's Heights Increases and Decrease With the Arrow Keys
*Triggers Begin With Levitation Ability Activated
*Maximum Flying Height Blocks Unit From Going Above Height of 1100
*A Secondary Unit Is What Maintains The Basic Flying Unit And Changes Is From Hover Movement Type To Flying Movement Type
*Camera Is Fixed Because I Am Using Arrow Keys For Up and Down (But Would Prefer W for Up and S for Down But Don't Know How to Do It)
What Doesn't Work Yet:
*Unit's Height Still Changes Depending On What Terrain Level They Are At, I would Like The Terrain Height To NOT Affect the Flying Height Of Unit While My Triggers Are Running
*Not Sure If More Efficient Way Could Be Created
Thank you!
I see a possible solution from this link.
But don't know how to incorporate for a singular, FLYING unit. I also don't really use JASS in my triggers so i would prefer a GUI version.
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
The Triggers Below Turn Off/On Based On Whether [Ability - Levitation] Being Activated. (Ability Levitation is based on Immolation)
TLDR: What I Want Is To Make My System More Efficient, And To Incorporate Ignoring Terrain Height When In Levitation Mode.
Edit (8/12): Figured out how to make the system work with some minor glitches. Would still appreciate some help to make it more smooth but understand it may be a bit too complicated. (Deleted triggers from my Original Post, but if you want to see again let me know) Also the map below does not contain the better version but i can post if ppl want.
I have a system of triggers that function only half-way in my goal towards creating a movement system for flying with arrow key. I will attach a map that shows it off. But there are some issues with my triggers currently.
What Works:
*Unit's Heights Increases and Decrease With the Arrow Keys
*Triggers Begin With Levitation Ability Activated
*Maximum Flying Height Blocks Unit From Going Above Height of 1100
*A Secondary Unit Is What Maintains The Basic Flying Unit And Changes Is From Hover Movement Type To Flying Movement Type
*Camera Is Fixed Because I Am Using Arrow Keys For Up and Down (But Would Prefer W for Up and S for Down But Don't Know How to Do It)
What Doesn't Work Yet:
*Unit's Height Still Changes Depending On What Terrain Level They Are At, I would Like The Terrain Height To NOT Affect the Flying Height Of Unit While My Triggers Are Running
*Not Sure If More Efficient Way Could Be Created
Thank you!
I see a possible solution from this link.
But don't know how to incorporate for a singular, FLYING unit. I also don't really use JASS in my triggers so i would prefer a GUI version.
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
The Triggers Below Turn Off/On Based On Whether [Ability - Levitation] Being Activated. (Ability Levitation is based on Immolation)
TLDR: What I Want Is To Make My System More Efficient, And To Incorporate Ignoring Terrain Height When In Levitation Mode.
Edit (8/12): Figured out how to make the system work with some minor glitches. Would still appreciate some help to make it more smooth but understand it may be a bit too complicated. (Deleted triggers from my Original Post, but if you want to see again let me know) Also the map below does not contain the better version but i can post if ppl want.
Attachments
Last edited:













