Hi, I need a script that will initiate a conversation with a chosen NPC directly after a cutscene finishes. I figure I can use the end script area of the cutscene to fire it. I tried using the BeginConversation function, but I'm having trouble figuring it out. I'm pretty new to coding, so actually posting the script would be a big help.
Thanks
Script to start conversation
Débuté par
ShadowAvatar87
, janv. 02 2010 04:39
#1
Posté 02 janvier 2010 - 04:39
#2
Posté 02 janvier 2010 - 11:32
If you include "utility_h" in your script, you can use UT_Talk() instead.
The only mandatory parameters to that function are objects for the speaker and the listener.
So a simple GetObjectByTag() with your speaker's tag as a string should get your speaker.
Then use oPC as the player as the listener. (Or GetHero() if you haven't already defined oPC as GetHero() earlier in your script)
The only mandatory parameters to that function are objects for the speaker and the listener.
So a simple GetObjectByTag() with your speaker's tag as a string should get your speaker.
Then use oPC as the player as the listener. (Or GetHero() if you haven't already defined oPC as GetHero() earlier in your script)
#3
Posté 03 janvier 2010 - 05:31
Thanks, I'll give it a try
#4
Posté 03 janvier 2010 - 11:01
That did the trick. Thanks a lot.





Retour en haut






