Triggers when an AI becomes aware of other objects. Create a ScriptParams link to each object to watch for and set the link data to
af plus a code that identifies the object. When the AI becomes aware of the object it will send TurnOn to ScriptParams links that have the same code. If the AI can hear the object, links that begin with
aa are used. If it can see the object, links that begin with
av are used. TurnOff will be sent when the AI loses contact with the object. This script requires the DarkHook library.
|ScriptParams(afcode)||Link to object that can trigger awareness.|
|ScriptParams(avcode)||Relay to these links when the AI can see the object.|
|ScriptParams(aacode)||Relay to these links when the AI can hear the object.|