I am having trouble with something. I need to get the object name but it is returning an empty string.
Just including code related to the problem.
LocationType l;
Object *o;
o=Object.GetAtScreenXY(mouse.x, mouse.y);
l=GetLocationType(mouse.x, mouse.y);
if (l==eLocationObject) {
return String.Format("%d %s",o.ID, o.Name);
}
The object name field is filled in. It is called "oDoor". However my function is returning "1 ".
Object.Name is not the script name, it is the property called "Description" the the Editor, which is rather used as hotspot's description for player.
Thanks, just figured that out.