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
LDOriginal Offline
Junior Member

Posts: 35
Threads: 7
Joined: Oct 2014
Reputation: 0
#7
RE: No sound playing in script area

(10-07-2014, 08:10 PM)Neelke Wrote: There might just be a quote you accidently deleted while changing this. Just post the script after this change.

void OnStart()
{

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

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



{
SetSwingDoorLocked(asEntity, false, true);
PlaysoundAtEntity("", "unlock_door.snt", asEntity, 10, false);
RemoveItem(asItem);

PlaysoundAtEntity("", "25_strain_wood.snt", "Player", 0.0f, false);

}
10-07-2014, 08:20 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 LDOriginal - 10-07-2014, 08:20 PM



Users browsing this thread: 1 Guest(s)