Nervly
Junior Member
Posts: 40
Threads: 2
Joined: Feb 2012
Reputation:
0
|
RE: 3 Questions: Cave In and Destroying bookshelf
(07-04-2012, 01:04 AM)FastHunteR Wrote: poste that script part? Sorry, I forgot.
I did google it, but couldn't find the solution
Here it is:
Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "pot_area_1", "Look", true, 1);
}
void Look(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "amb_idle", "Player", 0, false);
StartPlayerLookAt("wind_area", 2, 3, "StopPlayerLookAt");
}
I changed to .snt again. When I tried with PlayMusic I had it like this:
Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "pot_area_1", "Look", true, 1);
}
void Look(string &in asParent, string &in asChild, int alState)
{
PlayMusic("amb_idle02", false, 10, 0, 0, false);
StartPlayerLookAt("wind_area", 2, 3, "StopPlayerLookAt");
}
(This post was last modified: 07-04-2012, 01:18 AM by Nervly.)
|
|
07-04-2012, 01:17 AM |
|