Mr. Versipellis wrote...
Feeling pretty dumb right now. So what does that function "get" - the tag or resref of the area?
Neither. It gets you an object reference to the area object. That lets you treat it like any other object. If you wanted its tag or resref, you'd use string sArea = GetTag(oArea) or string sArea = GetResRef(oArea).
So if the tag of the area you want the ambush to occur in is "ambush_area," you could do the following:
object oArea = GetArea(GetLastPCRested());
string sArea = GetTag(oArea);
if (sArea == "ambush_area") {
// Insert ambush code here
}
Modifié par AndarianTD, 02 août 2012 - 10:46 .