Lankhmar_PRC8/_module/nss/pc_cam_brgi1.nss

27 lines
638 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "NW_I0_PLOT"
#include "in_g_cutscene"
void main()
{
object oPC = GetPCSpeaker();
object oMe = OBJECT_SELF;
FadeToBlack(oPC);
float fRange =GetHorizontalDistanceBetween(oMe,oPC);
float fAngle = GestaltGetDirection(oMe,oPC) + (40.0 / sqrt(GetHorizontalDistanceBetween(oMe,oPC)));
if (fAngle > 360.0) fAngle -= 360.0;
AssignCommand(oPC,SetCameraHeight(oPC,0.0));
AssignCommand(oPC,SetCameraFacing(fAngle,fRange,80.0));
FadeFromBlack(oPC);
// Have "Braggi1" say something.
DelayCommand(2.0, AssignCommand(GetObjectByTag("Braggi1"), SpeakString("PLEASE SPEAK WITH ME!")));
}