Hi,
I'm working on a simple GUI trigger for entering buildings. Rather than instant-moving units between regions to enter houses, I'm using a framework kit made of walls and roofs so that players can actually ENTER buildings. I'm now working on an efficient way to hide the roofs when a unit enters the region.
I'm trying to write the whole system in 2 triggers; one for entering the house (region) and one for exiting. I'm using many of the Unit Enters Region event and inserting each individual house region, so the trigger fires every time a player enters ANY house. The problem now is getting ONLY the roof of the ACTUAL ENTERED house to hide -- I already know I can do this using a handful of If/Then/Else actions, but that's really inefficient.
My question is (since I am no JASS expert): is there a call function in JASS that would allow me to return the entered region from a "unit enters region" event? Maybe something like "Call GetEnteredRegion(udg_***...)" and then I could save it as a variable?? I really have no idea what it would look like, I'm truly a JASS noob, but this would make the whole script a million times simpler and efficient
Thanks so much in advance
I'm working on a simple GUI trigger for entering buildings. Rather than instant-moving units between regions to enter houses, I'm using a framework kit made of walls and roofs so that players can actually ENTER buildings. I'm now working on an efficient way to hide the roofs when a unit enters the region.
I'm trying to write the whole system in 2 triggers; one for entering the house (region) and one for exiting. I'm using many of the Unit Enters Region event and inserting each individual house region, so the trigger fires every time a player enters ANY house. The problem now is getting ONLY the roof of the ACTUAL ENTERED house to hide -- I already know I can do this using a handful of If/Then/Else actions, but that's really inefficient.
My question is (since I am no JASS expert): is there a call function in JASS that would allow me to return the entered region from a "unit enters region" event? Maybe something like "Call GetEnteredRegion(udg_***...)" and then I could save it as a variable?? I really have no idea what it would look like, I'm truly a JASS noob, but this would make the whole script a million times simpler and efficient
Thanks so much in advance