Frictional Games Forum (read-only)

Full Version: How to trigger sounds, entities etc.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey guys,

i want to trigger a sound, when the player enters an area. i already discovered the "Areas" button but dont know how to use it. can you help me?

thanks alot
well...
Void OnStart
{
AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);
}

void MyFunc(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
}

Just make the appropriate changes.