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
Scripting fatal errors?
Rapsis Offline
Member

Posts: 69
Threads: 6
Joined: Oct 2012
Reputation: 0
#6
RE: Scripting fatal errors?

(10-14-2012, 01:14 PM)The chaser Wrote: It disappears? 0_0 Maybe you've added too much force. Mess around with the values and maybe you get something.
It either doesn't move at all or disappears. Thought it was a bug so I removed it, too. Now I made ANOTHER thing, this time it's a statue that the player looks at automaticly:



void OnStart()
{
FadeOut(0);
FadeIn(10);
AddEntityCollideCallback("Player", "Studydooropen", "CollideRoomTwo", true, 0);
AddUseItemCallback("", "bedroomkey_1", "mansion_1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "Statuescare", "Statuescare", true, 0);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_2", true, true);
SetSwingDoorLocked("mansion_2", true, true);
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("bedroomkey_1");
}

void Statuescare(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Statue_1", 75, 100, "");
}



void OnLeave()
{

}

The thing is, it doesn't work. No error or anything, it just doesn't work, he doesn't look at it.
10-14-2012, 01:39 PM
Find


Messages In This Thread
Scripting fatal errors? - by Rapsis - 10-14-2012, 11:23 AM
RE: Scripting fatal errors? - by Apjjm - 10-14-2012, 11:26 AM
RE: Scripting fatal errors? - by Rapsis - 10-14-2012, 11:28 AM
RE: Scripting fatal errors? - by Rapsis - 10-14-2012, 12:33 PM
RE: Scripting fatal errors? - by The chaser - 10-14-2012, 01:14 PM
RE: Scripting fatal errors? - by Rapsis - 10-14-2012, 01:39 PM
RE: Scripting fatal errors? - by The chaser - 10-14-2012, 02:57 PM
RE: Scripting fatal errors? - by Rapsis - 10-14-2012, 04:24 PM
RE: Scripting fatal errors? - by Tomato Cat - 10-14-2012, 04:30 PM
RE: Scripting fatal errors? - by Rapsis - 10-14-2012, 04:36 PM
RE: Scripting fatal errors? - by Tomato Cat - 10-26-2012, 03:47 PM
RE: Scripting fatal errors? - by The chaser - 10-14-2012, 05:46 PM
RE: Scripting fatal errors? - by Rapsis - 10-14-2012, 08:09 PM
RE: Scripting fatal errors? - by Adny - 10-15-2012, 01:55 AM
RE: Scripting fatal errors? - by Rapsis - 10-26-2012, 10:32 AM
RE: Scripting fatal errors? - by The chaser - 10-26-2012, 11:33 AM
RE: Scripting fatal errors? - by Rapsis - 10-26-2012, 11:37 AM
RE: Scripting fatal errors? - by ZodiaC - 10-26-2012, 12:50 PM
RE: Scripting fatal errors? - by Rapsis - 10-26-2012, 04:29 PM
RE: Scripting fatal errors? - by The chaser - 10-26-2012, 04:35 PM
RE: Scripting fatal errors? - by Rapsis - 10-26-2012, 04:38 PM
RE: Scripting fatal errors? - by The chaser - 10-26-2012, 04:42 PM
RE: Scripting fatal errors? - by Rapsis - 10-26-2012, 04:49 PM
RE: Scripting fatal errors? - by The chaser - 10-26-2012, 05:04 PM
RE: Scripting fatal errors? - by Rapsis - 10-26-2012, 06:32 PM
RE: Scripting fatal errors? - by Statyk - 10-26-2012, 06:48 PM
RE: Scripting fatal errors? - by Rapsis - 10-26-2012, 07:15 PM
RE: Scripting fatal errors? - by Statyk - 10-26-2012, 07:22 PM
RE: Scripting fatal errors? - by Rapsis - 10-27-2012, 11:28 AM
RE: Scripting fatal errors? - by Rapsis - 10-27-2012, 02:15 PM
RE: Scripting fatal errors? - by Rapsis - 10-27-2012, 03:20 PM
RE: Scripting fatal errors? - by Rapsis - 10-27-2012, 04:57 PM
RE: Scripting fatal errors? - by The chaser - 10-27-2012, 08:21 PM
RE: Scripting fatal errors? - by Rapsis - 10-28-2012, 07:52 AM
RE: Scripting fatal errors? - by Rapsis - 10-28-2012, 11:03 AM
RE: Scripting fatal errors? - by ZodiaC - 10-28-2012, 11:07 AM
RE: Scripting fatal errors? - by Rapsis - 10-28-2012, 11:23 AM
RE: Scripting fatal errors? - by The chaser - 10-28-2012, 11:32 AM
RE: Scripting fatal errors? - by The chaser - 10-28-2012, 11:15 AM
RE: Scripting fatal errors? - by Rapsis - 10-28-2012, 11:35 AM
RE: Scripting fatal errors? - by The chaser - 10-28-2012, 11:42 AM
RE: Scripting fatal errors? - by Your Computer - 10-28-2012, 12:08 PM
RE: Scripting fatal errors? - by Rapsis - 10-28-2012, 12:12 PM
RE: Scripting fatal errors? - by The chaser - 10-28-2012, 12:24 PM
RE: Scripting fatal errors? - by Rapsis - 10-28-2012, 05:14 PM
RE: Scripting fatal errors? - by The chaser - 10-28-2012, 05:27 PM
RE: Scripting fatal errors? - by Rapsis - 10-28-2012, 08:07 PM
RE: Scripting fatal errors? - by Rapsis - 10-29-2012, 11:28 AM
RE: Scripting fatal errors? - by Rapsis - 11-08-2012, 01:34 PM
RE: Scripting fatal errors? - by The chaser - 11-08-2012, 02:11 PM
RE: Scripting fatal errors? - by Rapsis - 11-08-2012, 03:04 PM
RE: Scripting fatal errors? - by The chaser - 11-08-2012, 03:15 PM
RE: Scripting fatal errors? - by Rapsis - 11-08-2012, 03:58 PM
RE: Scripting fatal errors? - by The chaser - 11-08-2012, 04:09 PM
RE: Scripting fatal errors? - by Kreekakon - 11-08-2012, 04:08 PM
RE: Scripting fatal errors? - by Rapsis - 11-09-2012, 01:00 PM
RE: Scripting fatal errors? - by The chaser - 11-09-2012, 02:03 PM
RE: Scripting fatal errors? - by Rapsis - 11-09-2012, 05:11 PM
RE: Scripting fatal errors? - by The chaser - 11-09-2012, 05:24 PM
RE: Scripting fatal errors? - by Rapsis - 11-22-2012, 04:05 PM
RE: Scripting fatal errors? - by The chaser - 11-22-2012, 04:29 PM
RE: Scripting fatal errors? - by Rapsis - 07-09-2013, 06:50 PM
RE: Scripting fatal errors? - by The chaser - 07-09-2013, 07:15 PM
RE: Scripting fatal errors? - by Rapsis - 07-09-2013, 10:48 PM
RE: Scripting fatal errors? - by PutraenusAlivius - 07-10-2013, 03:46 AM
RE: Scripting fatal errors? - by Rapsis - 07-10-2013, 09:48 AM
RE: Scripting fatal errors? - by Rapsis - 07-18-2013, 06:24 PM
RE: Scripting fatal errors? - by No Author - 07-19-2013, 01:14 AM
RE: Scripting fatal errors? - by Rapsis - 07-23-2013, 01:06 PM
RE: Scripting fatal errors? - by Rapsis - 08-06-2013, 10:56 AM
RE: Scripting fatal errors? - by The chaser - 08-06-2013, 11:55 AM
RE: Scripting fatal errors? - by Rapsis - 08-06-2013, 06:52 PM
RE: Scripting fatal errors? - by The chaser - 08-06-2013, 08:29 PM
RE: Scripting fatal errors? - by Rapsis - 08-06-2013, 10:36 PM
RE: Scripting fatal errors? - by The chaser - 08-07-2013, 10:14 AM
RE: Scripting fatal errors? - by Rapsis - 08-07-2013, 11:08 AM
RE: Scripting fatal errors? - by Kreekakon - 08-07-2013, 11:14 AM
RE: Scripting fatal errors? - by Rapsis - 08-07-2013, 11:18 AM
RE: Scripting fatal errors? - by Kreekakon - 08-07-2013, 11:21 AM
RE: Scripting fatal errors? - by Rapsis - 08-07-2013, 11:26 AM
RE: Scripting fatal errors? - by Rapsis - 08-07-2013, 03:12 PM
RE: Scripting fatal errors? - by The chaser - 08-07-2013, 03:20 PM
RE: Scripting fatal errors? - by Rapsis - 08-07-2013, 03:23 PM
RE: Scripting fatal errors? - by The chaser - 08-07-2013, 03:33 PM
RE: Scripting fatal errors? - by Rapsis - 08-07-2013, 03:35 PM
RE: Scripting fatal errors? - by Rapsis - 08-07-2013, 04:39 PM



Users browsing this thread: 2 Guest(s)