I'm trying to get the plot feature but having trouble using the following.
local iUnitX, iUnitY = pUnit:GetX(), pUnit:GetY()
local pUnitPlot = Map.GetPlot(iUnitX, iUnitY)
local pUnitPlotTerrain = pUnitPlot:GetTerrainType()
local pUnitPlotFeature = pUnitPlot:GetFeatureType()
local fFeature = GameInfo.Features[pUnitPlotFeatureID].FeatureType
pUnitPlotFeature returns a numeric value but fFeature won't give the FeatureType. This method works fine for terrain types and I assumed it would work for features as well. any suggestions?
local iUnitX, iUnitY = pUnit:GetX(), pUnit:GetY()
local pUnitPlot = Map.GetPlot(iUnitX, iUnitY)
local pUnitPlotTerrain = pUnitPlot:GetTerrainType()
local pUnitPlotFeature = pUnitPlot:GetFeatureType()
local fFeature = GameInfo.Features[pUnitPlotFeatureID].FeatureType
pUnitPlotFeature returns a numeric value but fFeature won't give the FeatureType. This method works fine for terrain types and I assumed it would work for features as well. any suggestions?