Hi all, I am in dire need of 3 scripts, or how to find them if they exist.
1. When a weapon is picked up, play a sound (but only first time, such as a voice line)
2. When all of the targets are shot, play a sound
3. When an enemy is killed, play a sound to the player (such as an ally through the radio saying "nice shot" or something along those lines)
Ideas of how they might work:
1. Normal weapon script addon: when the weapon is picked up, check for a variable. If the variable is 0, play a sound and set to 1.
2. I wouldn't know how this one would be set up, but variables are somehow triggered when the target is shot, it adds 1, checks if that variable meets the requirement. If not, do nothing. If the requirement is met, play the sound.
3. Normal enemy AI script addon: when an enemy is killed, play a sound on a certain entity nearby (?).
If any of them exist somewhere, please link them in the replies. Any help is appreciated.
Edit: corrected spelling
The author of this post has marked a post as an answer.
Go to answer