Question about GetName()
Zephirius
Member Posts: 419
Would someone please explain to me, why the PC's name doesn't appear as floaty text above the object "FASIONABLE_ONE"? The object the script is attached to is a book placeable...
Or am I way off on this one?
Or am I way off on this one?
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oEyeball = GetObjectByTag("FASHIONABLE_ONE");
FloatingTextStringOnCreature(GetName(oPC), oEyeball);
}
0
Comments
https://nwnlexicon.com/index.php?title=FloatingTextStringOnCreature
Instead use SpeakString(); which can also be used for placeables:https://nwnlexicon.com/index.php?title=SpeakString
void main() { object oPC = GetLastUsedBy(); if (!GetIsPC(oPC)) return; object oEyeball = GetObjectByTag("FASHIONABLE_ONE"); AssignCommand(oEyeball, SpeakString(GetName(oPC))); }