Quote from: Xmair on Sep 12, 2020, 05:48 PMQuote from: MEGAMIND on Sep 12, 2020, 04:18 PMi tried puttin the playfile function in onscriptload but its doesnt work until i type /mega to play itCode Select-847 function onPlayingCompleted( recordedFileName, actor id )
MEGAMIND isn't defined as a variable or constant anywhere, use "MEGAMIND" (string)
-848 {
-849 PlayFile(MEGAMIND, 1); <---- HERE
-850 }
Quote from: MEGAMIND on Sep 12, 2020, 03:54 PMalready done that partCode Selectcase "mega":
{
PlayFile("MEGAMIND", 0);
}
break;Code Selectfunction onPlayingCompleted( recordedFileName, actorid )
{
PlayFile("MEGAMIND", 0);
}
working this thing repeats itself, awsome, this can be done with pickups on player cords and active function like in mission