#include "in_g_cutscene"
void main()
{
object oPC = GetLocalObject( GetObjectByTag("tr_thefall"),"cutsceneviewer" );
object oNPC = GetObjectByTag("mynpc");
float fFace = GetFacing(oPC);
GestaltStartCutscene(oPC,"cthefall",TRUE,TRUE,TRUE,TRUE,2);
//------------------------------------------------------------------------
GestaltActionPlaySound(0.0,oPC,"bf_med_bone","");
GestaltActionAnimate(0.0,oPC,ANIMATION_LOOPING_DEAD_BACK,12.0,1.0);
GestaltCameraMove(0.0,
fFace + 180.0,5.0,0.0,
fFace + 180.0,5.0,180.0,
10.0,30.0,oPC);
//------------------------------------------------------------------------
GestaltStopCutscene(12.0,oPC);
}
I'm trying to make a cutscene with the gestalt scripts. Everything seems to work, with the exception of the GestaltActionPlaySound() command. The script instructions say that the 3rd argument is the name of a sound.
I tried using the name of one of the sounds you get in the Sound object making wizard, but it doesn't play. Am I supposed to be using a sound object? If so, how would I do that?
Thanks in advance!