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
Wrong script!Why!?
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#5
Is that right!?scripting

Huh

void OnStart()
{
PlayMusic("01_amb_darkness.ogg", true, 0.7f, 1, 0, false);
}

void OnEnter()
{
AddEntityCollideCallback("Player", "scare_1", "scare1", true, 1);
PlayMusic("01_amb_darkness.ogg", true, 0.7f, 1, 0, false);
AddEntityCollideCallback("player", "guardian_1", "guardian1", true, 1);
}

void scare1(string &in asParent , string &in asChild , int alState)
{
PlaySoundAtEntity("", "04_break02.snt", "candlestick_floor_1", 0, false);
PlaySoundAtEntity("", "scare_male_terrified_4.snt", "candlestick_floor_1", 0, false);
}

void guardian1(string &in asParent , string &in asChild , int alState)
{
PlaySoundAtEntity("", "guardian_distant.snt", "Player", 0, false);
PlaySoundAtEntity("", "guardian_idle.snt", "Player", 0, false);
01-05-2011, 02:04 PM
Find


Messages In This Thread
Wrong script!Why!? - by Janni1234 - 01-05-2011, 10:54 AM
RE: Wrong script!Why!? - by ModManDann - 01-05-2011, 10:59 AM
RE: Wrong script!Why!? - by DIGI Byte - 01-05-2011, 11:07 AM
RE: Wrong script!Why!? - by Janni1234 - 01-05-2011, 11:27 AM
RE: Wrong script!Why!? - by Mofo - 01-05-2011, 03:22 PM
RE: Wrong script!Why!? - by Janni1234 - 01-05-2011, 03:44 PM
RE: Wrong script!Why!? - by Janni1234 - 01-05-2011, 05:55 PM
RE: Wrong script!Why!? - by Akumasama - 01-05-2011, 06:01 PM
RE: Wrong script!Why!? - by Janni1234 - 01-05-2011, 06:16 PM
RE: Wrong script!Why!? - by xiphirx - 01-05-2011, 06:58 PM
RE: Wrong script!Why!? - by Janni1234 - 01-05-2011, 07:22 PM
RE: Wrong script!Why!? - by Janni1234 - 01-05-2011, 09:25 PM
RE: Wrong script!Why!? - by Tottel - 01-06-2011, 03:38 PM
RE: Wrong script!Why!? - by Janni1234 - 01-06-2011, 05:01 PM
RE: Wrong script!Why!? - by ModManDann - 01-06-2011, 05:29 PM
RE: Wrong script!Why!? - by Janni1234 - 01-06-2011, 07:49 PM
RE: Wrong script!Why!? - by ModManDann - 01-06-2011, 08:20 PM
RE: Wrong script!Why!? - by Janni1234 - 01-06-2011, 08:51 PM
RE: Wrong script!Why!? - by ModManDann - 01-06-2011, 09:12 PM
RE: Wrong script!Why!? - by toni1998 - 01-06-2011, 10:29 PM
RE: Wrong script!Why!? - by Janni1234 - 01-06-2011, 10:45 PM
RE: Wrong script!Why!? - by ModManDann - 01-06-2011, 11:39 PM
RE: Wrong script!Why!? - by xiphirx - 01-06-2011, 11:41 PM
RE: Wrong script!Why!? - by Tottel - 01-06-2011, 11:43 PM
RE: Wrong script!Why!? - by Janni1234 - 01-07-2011, 12:03 AM
RE: Wrong script!Why!? - by Tottel - 01-07-2011, 12:07 AM
RE: Wrong script!Why!? - by Janni1234 - 01-07-2011, 01:09 AM
RE: Wrong script!Why!? - by toni1998 - 01-07-2011, 03:07 PM
RE: Wrong script!Why!? - by DIGI Byte - 01-07-2011, 03:51 PM
RE: Wrong script!Why!? - by Akumasama - 01-07-2011, 07:02 PM
RE: Wrong script!Why!? - by toni1998 - 01-08-2011, 09:00 PM
RE: Wrong script!Why!? - by Tottel - 01-08-2011, 10:00 PM
RE: Wrong script!Why!? - by toni1998 - 01-08-2011, 10:20 PM
RE: Wrong script!Why!? - by toni1998 - 02-10-2011, 10:36 AM
RE: Wrong script!Why!? - by Tanshaydar - 02-10-2011, 01:26 PM
RE: Wrong script!Why!? - by Oscar House - 02-10-2011, 03:28 PM
RE: Wrong script!Why!? - by Janni1234 - 02-10-2011, 06:43 PM
RE: Wrong script!Why!? - by toni1998 - 02-10-2011, 07:55 PM
Is that right!?scripting - by Janni1234 - 01-05-2011, 02:04 PM
RE: Is that right!?scripting - by jens - 01-05-2011, 03:05 PM



Users browsing this thread: 7 Guest(s)