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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Lever when pull play sound

(04-13-2013, 10:48 PM)Hauken Wrote: [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");
}

It should be:
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", false);
}

The area should be where the door is in the beggining, like:

http://i.imgur.com/5oXViXg.jpg

Sorry, didn't find the slide door entity Tongue

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
04-13-2013, 11:06 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)