of how the hell to correctly attach audio to notes and diaries. i would love you forever if you did it because i can't do it no matter what i try.
+1
I would like such a vid too.
Uhm, can't you:
void OnStart()
{
SetEntityPlayerInteractCallback("note_generic_1", SoundNote1, true);
}
void SoundNote1(string &in entity)
{
PlaySoundAtEntity("TextRead", "Text_1.ogg", "Player", 0.5f, false);
AddTimer("NoteEndGeneralT", 0.5f, "NoteEndTimer");
}
void NoteEndTimer(string& asName, float afTime, string& asFunction);
{
StopSound("TextRead", 2.0f);
}
Or is there a specific thing in the entity tab of a note?
(05-22-2011, 09:04 PM)triadtimes Wrote: [ -> ]I've made a video and will post it shortly.
Here is the link, I hope it helps.
http://www.youtube.com/watch?v=EnCAbgTY6d8
thanks for the post, but unfortunately it still refuses to work and I have no idea why... i've set everything up perfectly... when i pick up the diary nothing happens at all. I have to push N to read the text... why? why does it do this when i've set it up exactly like everyone elses .lang files?
Yeah, I would also like a video, thanks!!