Airplane say to FDR

Info
It is a listener script with automatic answer; works only if the words are preset; can be used in any field, but in our case we will use it with the commands of the Skyhawk C172, which has only a few "audible" commands in the chat, putting those that are missing so that everything is recorded in the chat to effects of the FDR.

We add this script into the root prim of the airplane.

Airplane say to FDR script
integer listenHandle;

remove_listen_handle

{

llListenRemove(listenHandle);

}

default

{

state_entry

{

listenHandle = llListen(0, "", llGetOwner, "");

}

listen(integer channel, string name, key id, string message)

{

if (message == "beon")

llOwnerSay("Beacon Lights ON");

if (message == "naon")

llOwnerSay("Navigation Lights ON");

if (message == "ston")

llOwnerSay("Strobe Lights ON");

if (message == "laon")

llOwnerSay("Landing Lights ON");

if (message == "beoff")

llOwnerSay("Beacon Lights OFF");

if (message == "naoff")

llOwnerSay("Navigation Lights OFF");

if (message == "stoff")

llOwnerSay("Strobe Lights OFF");

if (message == "laoff")

llOwnerSay("Landing Lights OFF");

if (message == "od")

llOwnerSay("Doors OPEN");

if (message == "cd")

llOwnerSay("Doors CLOSED");

if (message == "start")

llOwnerSay("START Engine");

if (message == "stop")

llOwnerSay("STOP Engine");

}

}