Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Quwebb2000 on Thu 04/02/2016 00:08:53

Title: eCDEject
Post by: Quwebb2000 on Thu 04/02/2016 00:08:53
Hello, I would like to request help with the eCDEject command.

what command do I have to use to have it work.
this is how I am using it right now:
Code (ags) Select

function cEgo_Look()
{
  Display ("I AM THE RULER OF ALL!");
  eCDEject();
}

(this code is for testing purposes and will be in a better context later)
whenever I try to run the game it gives me a parse error.

Thanks.
Title: Re: eCDEject
Post by: Wyz on Thu 04/02/2016 00:23:57
You are nearly there: eCDEject is actually a value you have to use with the CDAudio function. Something like this:
Code (ags) Select
CDAudio(eCDEject, 0);

This kind of value is called an enumeration and is used throughout AGS and can be seen as a setting for function you are using. They all start with a lower case 'e'.

I hope this helps you with whatever sinister plot you are planning. ;) This is not going to affect me however; I don't have a CD-player in my computer.  :-D
Title: Re: eCDEject
Post by: Quwebb2000 on Thu 04/02/2016 00:27:22
Thanks for the help.