Frictional Games Forum (read-only)

Full Version: How Do I trigger a sound file at a specific area?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I want it to be like:The player walks into this area,and theres a guy who starts talking.Now how do I do this?
Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Sound", true, 1;
}

void Sound(sting &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
}
Please, head over here: http://wiki.frictionalgames.com/hpl2/amn...ons#player

It will tell you what you how and what you need to do what you want. Research is key.
These scripts can be easily made with the wiki.
Please stop making threads