Aller au contenu

Photo

FloatingTextStringOnCreature isnt float on NPC <Solved>


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Corvittin

Corvittin
  • Members
  • 23 messages
Hello everyone,

I'm a former nwn player at first, after years i decided to make a pw and started to learn nwnscripting first.

heres story;
theres a graveyard, some encounters(zombie, skeleton) on it.
an old man standing at the graveyard as graveyard worker. if a player triggers an encounter and run to him he will attack hostile mobs. in this case;
i put this script "onheartbeat" to graveyardman

void main()
{
object oCreature=OBJECT_SELF;
object oWaypoint=GetWaypointByTag("graveyard_man_stand");
string Message1="Die!";
string Message2="Im too old for this kind of things...!";

if (GetIsInCombat()== TRUE)
{
FloatingTextStringOnCreature(Message1, oCreature);
}
else
{
AssignCommand(oCreature, ActionMoveToObject(oWaypoint));
FloatingTextStringOnCreature(Message2, oCreature);
}

}
script works fine but theres no floating text appears on him... any ideas?
Cheers:D

edit: This is nwn2

Modifié par Corvittin, 15 décembre 2013 - 05:57 .


#2
Corvittin

Corvittin
  • Members
  • 23 messages
AssignCommand(oCreature, ActionSpeakString(Message2, TALKVOLUME_TALK));
Solved my problem =)