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
Lever when pull play sound
Hauken Offline
Member

Posts: 62
Threads: 19
Joined: Jul 2012
Reputation: 1
#5
RE: Lever when pull play sound

[Image: kcjdyr.png]

This was the result, i also had the editor with the pic so you can the placement of the ScriptArea.

I know by the values provided from that fault message I should know where to fix but I am a big noob at this and im still learning. Confused

Save pic to see enlarged !

void OnStart()
{
    InteractConnectPropWithMoveObject("","valve", "slidedoor",true, false, 0);
    PlayMusic("01_amb_darkness", true, 1, 0, 0, true);
    AddEntityCollideCallback("slidedoor", "AreaLeave", "DoSound", true, -1);
}

void DoSound (string &in asParent, string &in asChild, int alState)

{
PlaySoundAtEntity("","quest_completed.snt","slidedoor");
}
(This post was last modified: 04-13-2013, 10:52 PM by Hauken.)
04-13-2013, 10:48 PM
Find


Messages In This Thread
Lever when pull play sound - by Hauken - 04-13-2013, 10:19 PM
RE: Lever when pull play sound - by The chaser - 04-13-2013, 10:37 PM
RE: Lever when pull play sound - by Hauken - 04-13-2013, 10:38 PM
RE: Lever when pull play sound - by The chaser - 04-13-2013, 10:42 PM
RE: Lever when pull play sound - by Hauken - 04-13-2013, 10:48 PM
RE: Lever when pull play sound - by The chaser - 04-13-2013, 11:06 PM
RE: Lever when pull play sound - by Hauken - 04-13-2013, 11:26 PM
RE: Lever when pull play sound - by NaxEla - 04-13-2013, 11:42 PM
RE: Lever when pull play sound - by Hauken - 04-13-2013, 11:51 PM
RE: Lever when pull play sound - by NaxEla - 04-13-2013, 11:58 PM
RE: Lever when pull play sound - by Hauken - 04-14-2013, 12:11 AM



Users browsing this thread: 1 Guest(s)