This is a responder Simple Script. It allows an object, through interaction with a trigger Simple Script, to perform an action in the scene.
For an overview of Simple Scripts, see Simple Scripts user guide.
Details
Simple Sound plays a sound when triggered.
Parameters
-> Play Sound | When this event is received, begin playing the sound. |
-> Stop Sound | When this event is received, stop playing the sound. |
Sound | The sound resource to play. |
Pitch Variance | If not zero, the pitch is shifted on each play by a random amount within the variance. |
Minimum Loudness | The minimum loudness the sound will be played at. If less than Maximum Loudness, the sound will play at a randomly chosen loudness between the two. (Range: 0-100) |
Maximum Loudness | The maximum loudness the sound will play at. If greater than Minimum Loudness, the sound will play each time at a randomly chosen loudness between the two. (Range: 0-100) |
Spatialized | If off, the sound plays at the same loudness for everyone. If on and the object has an AudioComponent, then the sound will come from the audio component and follow the object if it moves. If on and the object does not have an AudioComponent, then the sound plays from the object at the time the event is received and does not follow the object. |
-> Enable | When this message is received, the script begins responding to events. |
-> Disable | When this message is received, the script stops responding to events. |
Start Enabled |
If on, this script responds to events when the scene is loaded. If off, the script will not respond to events until an -> Enable |
0 Comments