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
Script Help No sound playing in script area
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#9
RE: No sound playing in script area

The s in PlaySoundAtEntity should be with a capital as Flawless mentioned, fixed it for ya even tho it's easy to do XD

PHP Code: (Select All)
void OnStart()


AddEntityCollideCallback("Player""Ljud""start"true1);
AddUseItemCallback("""Key""Door""UseKeyOnDoor"true);
AddUseItemCallback("""Nyckel""Rumpa""UseKeyOnDoor"true);
AddUseItemCallback("""Tillskåp""Skåp""UseKeyOnDoor"true);
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)



{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity10false);
RemoveItem(asItem);

PlaySoundAtEntity("""25_strain_wood.snt""Player"0.0ffalse);



(This post was last modified: 10-07-2014, 08:37 PM by Radical Batz.)
10-07-2014, 08:37 PM
Find


Messages In This Thread
No sound playing in script area - by LDOriginal - 10-07-2014, 07:03 PM
RE: No sound playing in script area - by Neelke - 10-07-2014, 07:43 PM
RE: No sound playing in script area - by Neelke - 10-07-2014, 07:59 PM
RE: No sound playing in script area - by Neelke - 10-07-2014, 08:10 PM
RE: No sound playing in script area - by Radical Batz - 10-07-2014, 08:37 PM



Users browsing this thread: 1 Guest(s)