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 Sound not activating upon collision
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Sound not activating upon collision

(12-11-2012, 09:54 PM)Saitoshiba Wrote: My script file looks fine, but when the player enters on the scrip area the effect of losing sanity happens( usually don't) but the sound doesn't play. The other room that has the exact same thing plays the sound perfectly.


void OnStart()
{

AddEntityCollideCallback("Player","ScriptArea_8","Torture1",true, 0);
AddEntityCollideCallback("Player","ScriptArea_10","Torture2",true, 0);
}


void OnEnter()
{

}

void OnLeave()
{
}

// The collision that it is working perfectly

void Torture1(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(0,true);
PlaySoundAtEntity("Burn1","24_burn.snt","Player",0,false);
}

void Torture2(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(0,true);
PlaySoundAtEntity("Saw","23_saw2.snt","Player",0,false);
PlaySoundAtEntity("SawVoice","23_saw_voice2.snt","Player",0,false);
}

Can somebody help me?
Try this script.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-12-2012, 05:03 PM
Find


Messages In This Thread
RE: Sound not activating upon collision - by The chaser - 12-12-2012, 05:03 PM



Users browsing this thread: 1 Guest(s)