# OnScriptFAYTCommand

The **OnScriptFAYTCommand** event is the entry point for a [script add-in](../../../scripting/script_add-ins) that [extends the FAYT field](../../../scripting/example_scripts/extending_the_fayt). The actual name of the event is defined by the script itself, when the command is added via the [**ScriptInitData**](../scripting_objects/scriptinitdata)**.AddCommand** method - **OnScriptFAYTCommand** is merely a placeholder name.

| **Method Name:**   | OnScriptFAYTCommand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Argument Type:** | [**ScriptFAYTCommandData**](../scripting_objects/scriptfaytcommanddata)                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Return Type:**   | _none_                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Description:**   | <p>When a script extends the FAYT field by adding a new internal command using <strong>ScriptInitData.AddCommand</strong>, it specifies the name of its entry point with the <strong>ScriptCommand.method</strong> property. When the FAYT extension is triggered, Opus will call that method within your script.</p><p>The <a href="../scripting_objects/scriptfaytcommanddata"><strong>ScriptFAYTCommanddata</strong></a> object provides information about what the user has typed to trigger your extension.</p> |
