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!
OMMMMMG .. When I just press 'TEST MAP' ...Your triggers are disabled due to some errors ...Why the hell does this happen?????????? Ok Shit WE is really buggy they work now
1. You need JNGP and last Jasshelper (both on my signature)
2. Becasue your movement triggers works with GUI Player index (1, 2, 3, 4) and Mine in JASS works with 0, 1, 2, 3. If you set all the pn = pn+1 you'll match the JASS index with the GUI index.
3. What's the GUI Global Variable you're using to move the units?
1- The Problem is already solved
2- I understood (finally XD)
3- I'm using _Hero_2D[PlayerNumber] as a global variable . _Hero1_2D[#] is right facing .... and _Hero2_2D[#] is left facing
1. In SpartFaceUnitReplace function inside SpartFace Unit Data trigger, look for this
JASS:
function SpartFaceUnitReplace takes integer pn returns nothing
set pn = pn+1 <<--- This solves all the pn problems in this function.
local unit u = LoadUnitHandle(SpartFaceHash, GetHandleId(SpartFaceCurrent[pn]), 0) // The Opposite Facing
2. In the SpartFace Unit Set trigger look for this
JASS:
set SpartFaceRight[OwnerNumber] = TRUE
set udg_Hero1_2D[OwnerNumber]= Current <-- This solves your issues
set udg_Hero2_2D[OwnerNumber]= Opposite <-- This solves your issues
call KillUnit(GetBuyingUnit()) // Just for testing
call KillUnit(GetTriggerUnit()) // Just for Testing
3. Do this in both SpartFace StR and StL triggers (just add the +1)
JASS:
local integer pn = GetPlayerId(GetTriggerPlayer()) + 1
That should solve all your issues.
NOTE: If you copy/paste you have to remove the things i wrote with the "<---" else it will give errors.
EDIT: Be carefull with this. Here you have to substract the 1 again
1 and 3- Matches JASS Index with GUI Index
2- Sets the Right/Left facing units to your Right/Left facing variables
4- Makes the player select the unit after replacing it with the opposite facing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.