(07-09-2011, 12:58 AM)SkuLLfac3 Wrote: Hmm but I found another mistake and now it works o.O
The lever in the LevelEditor had the wrong name. I changed it and it worked. But the sound doesen't appear. Is your solution the reason for that?
Nope. It's because you are making a sound appear at an area that doesn't exist (or active).
Since in the same function the location from which the sound is played is unactive, causing it to appear from nowhere, causing it to break itself.
Replace the PlaySoundAtEntity with this:
PlaySoundAtEntity("", "door_large_castle_open.snt", "shelf_easteregg2", 0, false);
If it doesn't work, check the .snt sound and make sure it matches with the one that exists in the sound folder.