(12-23-2010, 11:08 PM)Dark88 Wrote:   (12-23-2010, 11:04 PM)bigfoot Wrote:   (12-23-2010, 10:57 PM)Dark88 Wrote:   (12-23-2010, 10:43 PM)bigfoot Wrote:  "Let me try":
In the level editor at the door set the interact call back option to like : FirstLockedDoorScare.
then script: 
void FirstLockedDoorScare(){
PlaySoundAtEntity(blabla)
}
That should work you just have to make sure the syntax of the function is correct in this instance 
void FirstLockedDoorScare(string &in asEntity) 
{
PlaySoundAtEntity(blabla)
}
also in that instance if you want for the string &in asEntity section of your PlaySoundAtEntity() you can just put asEntity without quotations
So I would just replace string &in asEntity (the one in the void FirstLockedDoorScare(this one)) with the door name? and then playsound at entity?
Thanks man  you deserve rep!
 you deserve rep!
You're welcome, bro. I'm just glad I can help a fellow beginner.
Anyways, You replace the one in the PlaySoundAtEntity like this
PlaySoundAtEntity("", "break_wood_metal", asEntity, 0, false);
Haha this is like a chat room. I edit my post and you already wrote a new one hehe. anyway (if you haven't noticed my edit)
here:
Forget what I said it's working. but only if I make it so the callback won't be removed. (It's an option inside the LEVEL EDITOR)
But I actually want it to only be able to happen once. 
Is there a special function that would do this? (Maybe to delete the sound of delete the callback?
Oh 1 more thing. I read somewhere that there is a function page which shows all the function but I can't find it.
Do you maybe know where I could find it?
Thanks in advance 
I really appreciate it man!