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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Playsound at SetEntityPlayerlookatCallback?
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#6
RE: Playsound at SetEntityPlayerlookatCallback?

Do you get an error? Is the script area named "ScriptArea_1" in the editor?

Do you use the debug menu? If so, try to add a DebugMessage:

void ScreamTrigger(string &in asEntity, int alState)
{
PlaySoundAtEntity("", "21_scream5.snt", "stove_1", 0.8f, false);
GiveSanityDamage(10, false);

AddDebugMessage("This is to see if the function works. Maybe you just can't hear the sound.", false);
}

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
(This post was last modified: 02-02-2013, 11:07 PM by GoranGaming.)
02-02-2013, 11:05 PM
Website Find


Messages In This Thread
RE: Playsound at SetEntityPlayerlookatCallback? - by GoranGaming - 02-02-2013, 11:05 PM



Users browsing this thread: 1 Guest(s)