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
Level Editor Help New Question: How to create a door
Nervly Offline
Junior Member

Posts: 40
Threads: 2
Joined: Feb 2012
Reputation: 0
#62
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 Confused

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");
}

Check it out!
http://www.youtube.com/Nervly

Please?
[Image: please-please-please.jpg]
(This post was last modified: 07-04-2012, 01:18 AM by Nervly.)
07-04-2012, 01:17 AM
Find


Messages In This Thread
New Question: How to create a door - by Nervly - 06-20-2012, 12:55 PM
RE: 3 Questions: Cave In and Destroying bookshelf - by Nervly - 07-04-2012, 01:17 AM



Users browsing this thread: 1 Guest(s)