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
HPS error (level editing)
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#11
RE: HPS error (level editing)

No :\ Still nothing.
03-21-2012, 10:45 PM
Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#12
RE: HPS error (level editing)

void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{

SetSwingDoorLocked("mansion_1", false, true);

PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);

RemoveItem("key_1");

}

This didn't work for you? Hm.... Everything in that code looks fine to me. No missing " or ; You said that everything works except for the sound playing correct? If so, did you mess with that sound file? Moved it or anything? If you didn't try using "unlock_door.ogg" .snt should've worked but I don't know what else you could try =/. I would say that names didn't match up, but if the door still unlocks that wouldn't be the case

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
(This post was last modified: 03-21-2012, 11:01 PM by DaAinGame.)
03-21-2012, 11:00 PM
Find
mrscoomich Offline
Member

Posts: 55
Threads: 6
Joined: Mar 2012
Reputation: 0
#13
RE: HPS error (level editing)

Oh, alright. It worked Smile

I put "unlocked_door.snt" instead of "unlock_door.snt"

Thank you so much! =D I appreciate it.
03-21-2012, 11:06 PM
Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#14
RE: HPS error (level editing)

Good to hear! Feel free to message me if you have any more questions, I'm always available to help to the best of my abilities.

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
03-21-2012, 11:07 PM
Find




Users browsing this thread: 1 Guest(s)