As with GetEntityKey know Name of the object, such as a firepit model.
TPick pick2;
if(MouseHit(1)) {
HideEntity(character);
HideEntity(waycursor);
if(CameraPick(&pick2,fw.GetMain().GetCamera(),Vec3(MouseX(),MouseY(),1000.0))) {
string name;
name=GetEntityKey(pick2.entity,"name");
PositionEntity(cursor,Vec3(pick2.X,pick2.Y+0.25,pick2.Z));
}
ShowEntity(waycursor);
ShowEntity(character);
}
...
if (!pick2.entity) {
DrawText(0,100,"%s",GetEntityKey(pick2.entity,"name"));
}
DrawText(0,116,"%s",name);
Not Worked ;(
Please help me!