Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's wrong with this lever?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: What's wrong with this lever?

(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. Blush 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.

(This post was last modified: 07-09-2011, 01:11 AM by Kyle.)
07-09-2011, 01:10 AM
Find


Messages In This Thread
What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 12:19 AM
RE: What's wrong with this lever? - by Kyle - 07-09-2011, 12:23 AM
RE: What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 12:58 AM
RE: What's wrong with this lever? - by Kyle - 07-09-2011, 01:10 AM
RE: What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 01:41 AM
RE: What's wrong with this lever? - by Kyle - 07-09-2011, 02:26 AM
RE: What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 02:43 AM



Users browsing this thread: 1 Guest(s)