Aller au contenu

Photo

Need Help with gtr_PlayMusic Script (problem solved.)


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

#1
Alupinu

Alupinu
  • Members
  • 528 messages
Hey does anybody have a gtr_type Play Music script? I have been trying to make one all morning with no success. I have posted below what I have come up with so far so if somebody tell me what I’m doing wrong or just kick me down a working script I would be very thankfull.

BTW, this would be for 'Area Background Music'.
Thank you
alupinu

++++++++++++++++++++++++++++++++++++++++++

//Created by: alupinu
//Put this script OnEnter
#include "ginc_sound"
void main(int nTrack)
{
 object oPC = GetPCSpeaker();
 
 if(!GetIsObjectValid(oPC))
 {
  oPC = OBJECT_SELF;
 }
 object oArea = GetArea(oPC);
 
 MusicBackgroundChangeDay(oArea,nTrack);
 
 DelayCommand(3.0,MusicBackgroundChangeDay(oArea,nTrack));
 


Nevermind, I was just being a blockhead.Posted Image
 

Modifié par Alupinu, 14 mars 2011 - 09:57 .