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
How to trigger sounds, entities etc.
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
How to trigger sounds, entities etc.

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

When you are looking for someone, to do the scripting for your Custom Story, ask me!
11-06-2012, 06:48 PM
Find
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#2
RE: How to trigger sounds, entities etc.

well...

When you are looking for someone, to do the scripting for your Custom Story, ask me!
11-06-2012, 08:04 PM
Find
ZodiaC Offline
Member

Posts: 120
Threads: 8
Joined: Oct 2012
Reputation: 2
#3
RE: How to trigger sounds, entities etc.

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.

[Image: 2H1Mc.jpg]
11-06-2012, 08:41 PM
Find




Users browsing this thread: 1 Guest(s)