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
N00B needs help AGAIN
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#4
RE: N00B needs help AGAIN

(05-01-2011, 02:05 PM)X4anco Wrote: Thank you SO much Big Grin Big Grin Big Grin Big Grin
Oh one quick question how would I get a sound to play at the same time ? :/
coDe
_________________


PlaySoundAtEntity("", "guardian_activated1", "player", 0, true);

I would use:
void OnStart()
{
AddEntityCollideCallback("Player", "LightsOut", "LightsOut", true, 1);
}
[...]

void LightsOut(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candles", false, false); //Lamp inactive
SetLightVisible("BoxLight_1", false); //Light inactive
PlayGuiSound("guardian/guardian_activated1.ogg", 1);
}

I didn't test it, but it should work.
(This post was last modified: 05-01-2011, 03:00 PM by Roenlond.)
05-01-2011, 03:00 PM
Find


Messages In This Thread
N00B needs help AGAIN - by X4anco - 05-01-2011, 01:28 PM
RE: N00B needs help AGAIN - by Roenlond - 05-01-2011, 01:51 PM
RE: N00B needs help AGAIN - by X4anco - 05-01-2011, 02:05 PM
RE: N00B needs help AGAIN - by Roenlond - 05-01-2011, 03:00 PM
RE: N00B needs help AGAIN - by X4anco - 05-01-2011, 09:43 PM
RE: N00B needs help AGAIN - by ricky horror - 05-02-2011, 12:11 AM



Users browsing this thread: 1 Guest(s)