Hi all - just getting my head round scripting at the moment and I am wanting to build a little training mission where instructions came up on screen so I have started building a list of messages i.e.
Code:
int intArrayMsg = 0;
var listStrMsg = new List<string>(); //List that will hold all the messages
//Add each message to the list
listStrMsg.Add("Good morning pilot, today you are going to have a lesson on starting and taking off in the Hurricane.");
listStrMsg.Add("To display the next message press the F12 key.");
listStrMsg.Add("And to display the previous message press the F11 key.");
//Display the first message
GamePlay.gpHUDLogCenter(listStrMsg[intArrayMsg]);
So now I need to know if the F11 or F12 keys have been clicked to display the previous or next message. I will then be able to call a different function to display the appropriate message on screen.
Many thanks in advance
Glyn
Bookmarks