Page 1 of 1
[Help] Looking for area.name
Posted: Thu Jan 11, 2018 10:25 pm
by foghladha
Greetings Everyone,
Back in the old days I created a mod that used the following line:
Code: Select all
local areaName = GameData.Player.area.name
To retrieve the area that the player was standing in. So if I was in Spites Reach it would print Spites Reach. Since loading my old mod up on Return of Reckoning the area.name no longer works. Is there a new property I should be using instead?
Re: [Help] Looking for area.name
Posted: Thu Jan 11, 2018 10:45 pm
by sullemunk
foghladha wrote:Greetings Everyone,
Back in the old days I created a mod that used the following line:
Code: Select all
local areaName = GameData.Player.area.name
To retrieve the area that the player was standing in. So if I was in Spites Reach it would print Spites Reach. Since loading my old mod up on Return of Reckoning the area.name no longer works. Is there a new property I should be using instead?
might be a server packet thingy, since the string for area name is empty;
but you can use
Code: Select all
local areaName = towstring(GetZoneName(GameData.Player.zone))
instead to grab the name of the current zone instead