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
Request I want toactivate a sound when i pickup a note below is a script HELP!!
meneadeszz Offline
Junior Member

Posts: 20
Threads: 9
Joined: Apr 2012
Reputation: 0
#7
RE: I want toactivate a sound when i pickup a note below is a script HELP!!

(04-18-2012, 05:37 PM)Datguy5 Wrote: {
SetEntityCallbackFunc("ITEMS NAME", "PickUpNote1");
}
void PickUpNote1(string &in asEntity)
{
PlaySoundAtEntity("NoteRoar", "insanity_monster_roar03.snt", "Note1Roar", 0, false);
}
The FUNCTION is the functions name after the void.Then rename the ITEMS NAME with your notes name.
it's Still not working i will show you .

SetEntityCallbackFunc("Letterone", "PickUpNote1");
}

void PickUpNote1(string &in asEntity)
{
PlaySoundAtEntity("Letterone", "insanity_monster_roar03.snt", "Note1Roar", 0, false);
}

Here is a picture of the hps and editor..on the General tab the name is the same as entity

[Image: note1k.jpg]

Uploaded with ImageShack.us


04-18-2012, 06:12 PM
Find


Messages In This Thread
RE: I want toactivate a sound when i pickup a note below is a script HELP!! - by meneadeszz - 04-18-2012, 06:12 PM



Users browsing this thread: 1 Guest(s)