Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ender
candlejack131 Offline
Member

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
#32
RE: Ender

Ok so will this script work?
Spoiler below!
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "SlenderMan", "slendy", true, 1);
SetEntityPlayerLookAtCallback("SlenderDude", "Kill", true);
AddUseItemCallback("", "key_laboratory_1", "mansion_6", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "DICKY", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "happynow", "kyle", true, 1);
AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_6", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_6", 0, false);
RemoveItem("key_laboratory_1");
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
SetEntityActive("servant_grunt_2", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
}
void slendy(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("SlenderDude", true);
}

void Kill(string &in Entity, int alState)
{
GivePlayerDamage(100, "Slash", false, true);
}

void kyle(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("kyle_1", true);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_6", true, true);
}

SetSwingDoorClosed("door1", true, true);
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

I'd test it myself but i do not have the time and my friend is going to be here the next 2 days and i do not want to spoil anything about this?
(This post was last modified: 09-30-2012, 04:51 AM by candlejack131.)
09-30-2012, 04:50 AM
Find


Messages In This Thread
Ender - by candlejack131 - 09-11-2012, 11:35 PM
RE: Ender - by xxxxxxxxxxxxxxxx - 09-12-2012, 12:00 PM
RE: Ender - by Robby - 09-12-2012, 03:19 PM
RE: Ender - by candlejack131 - 09-12-2012, 08:21 PM
RE: Ender - by Robby - 09-12-2012, 08:24 PM
RE: Ender - by candlejack131 - 09-12-2012, 11:20 PM
RE: Ender - by candlejack131 - 09-13-2012, 09:48 PM
RE: Ender - by candlejack131 - 09-13-2012, 11:43 PM
RE: Ender - by Zaffre - 09-14-2012, 01:07 AM
RE: Ender - by candlejack131 - 09-14-2012, 01:10 AM
RE: Ender - by candlejack131 - 09-14-2012, 09:11 PM
RE: Ender - by candlejack131 - 09-15-2012, 02:57 AM
RE: Ender - by candlejack131 - 09-17-2012, 08:43 PM
RE: Ender - by Statyk - 09-25-2012, 04:14 AM
RE: Ender - by The chaser - 09-25-2012, 06:35 AM
RE: Ender - by candlejack131 - 09-25-2012, 08:01 PM
RE: Ender - by Robby - 09-25-2012, 08:34 PM
RE: Ender - by candlejack131 - 09-25-2012, 09:04 PM
RE: Ender - by The chaser - 09-26-2012, 02:08 PM
RE: Ender - by Robby - 09-26-2012, 02:21 PM
RE: Ender - by candlejack131 - 09-26-2012, 08:46 PM
RE: Ender - by KH55 - 09-26-2012, 09:28 PM
RE: Ender - by candlejack131 - 09-26-2012, 09:29 PM
RE: Ender - by KH55 - 09-26-2012, 09:33 PM
RE: Ender - by candlejack131 - 09-26-2012, 09:34 PM
RE: Ender - by KH55 - 09-26-2012, 09:36 PM
RE: Ender - by The chaser - 09-26-2012, 03:02 PM
RE: Ender - by The chaser - 09-27-2012, 06:45 AM
RE: Ender - by candlejack131 - 09-27-2012, 08:20 PM
RE: Ender - by xxxxxxxxxxxxxxxx - 09-28-2012, 01:42 PM
RE: Ender - by candlejack131 - 09-30-2012, 04:50 AM
RE: Ender - by candlejack131 - 10-05-2012, 12:25 AM
RE: Ender - by KH55 - 10-05-2012, 12:44 AM
RE: Ender - by candlejack131 - 10-05-2012, 01:10 AM
RE: Ender - by The chaser - 10-05-2012, 06:45 AM
RE: Ender - by candlejack131 - 10-05-2012, 08:05 PM
RE: Ender - by xxxxxxxxxxxxxxxx - 10-05-2012, 10:59 AM
RE: Ender - by kartanonperuna - 10-05-2012, 06:38 PM
RE: Ender - by The chaser - 10-05-2012, 08:26 PM
RE: Ender - by candlejack131 - 10-05-2012, 09:06 PM
RE: Ender - by candlejack131 - 10-06-2012, 05:21 PM
RE: Ender - by candlejack131 - 10-07-2012, 12:36 AM
RE: Ender - by xxxxxxxxxxxxxxxx - 10-07-2012, 04:36 PM
RE: Ender - by candlejack131 - 10-07-2012, 05:36 PM
RE: Ender - by warmacha11 - 10-07-2012, 08:44 PM
RE: Ender - by candlejack131 - 10-07-2012, 08:54 PM
RE: Ender - by warmacha11 - 10-07-2012, 08:58 PM
RE: Ender - by candlejack131 - 10-07-2012, 09:27 PM
RE: Ender - by candlejack131 - 10-09-2012, 09:12 PM
RE: Ender - by candlejack131 - 10-14-2012, 07:43 PM
RE: Ender - by The chaser - 10-14-2012, 08:28 PM
RE: Ender - by candlejack131 - 10-15-2012, 12:35 AM
RE: Ender - by Statyk - 10-15-2012, 01:16 AM
RE: Ender - by candlejack131 - 10-15-2012, 08:53 PM
RE: Ender - by The chaser - 10-15-2012, 09:01 PM
RE: Ender - by candlejack131 - 10-15-2012, 09:12 PM
RE: Ender - by Adny - 10-16-2012, 12:36 AM
RE: Ender - by crisosphinx - 10-16-2012, 12:32 AM
RE: Ender - by The chaser - 10-16-2012, 06:37 AM
RE: Ender - by crisosphinx - 10-16-2012, 02:24 PM
RE: Ender - by Acies - 10-16-2012, 12:38 AM
RE: Ender - by candlejack131 - 10-16-2012, 12:54 AM
RE: Ender - by candlejack131 - 10-21-2012, 03:13 PM
RE: Ender - by The chaser - 10-21-2012, 03:43 PM
RE: Ender - by candlejack131 - 10-21-2012, 05:08 PM
RE: Ender - by The chaser - 10-25-2012, 02:17 PM
RE: Ender - by candlejack131 - 10-26-2012, 12:27 AM
RE: Ender - by The chaser - 10-26-2012, 06:34 AM
RE: Ender - by candlejack131 - 10-28-2012, 07:46 PM
RE: Ender - by kartanonperuna - 10-29-2012, 06:15 AM
RE: Ender - by candlejack131 - 10-29-2012, 02:09 PM
RE: Ender - by kartanonperuna - 10-29-2012, 02:43 PM
RE: Ender - by candlejack131 - 10-29-2012, 04:27 PM
RE: Ender - by WALP - 10-29-2012, 05:23 PM
RE: Ender - by candlejack131 - 10-29-2012, 06:25 PM
RE: Ender - by The chaser - 10-29-2012, 09:22 PM
RE: Ender - by candlejack131 - 10-29-2012, 09:59 PM
RE: Ender - by Your Computer - 10-29-2012, 10:11 PM
RE: Ender - by candlejack131 - 10-29-2012, 10:21 PM
RE: Ender - by The chaser - 10-29-2012, 10:29 PM
RE: Ender - by candlejack131 - 11-01-2012, 02:53 AM
RE: Ender - by Statyk - 11-01-2012, 02:57 AM
RE: Ender - by candlejack131 - 11-01-2012, 07:54 PM
RE: Ender - by candlejack131 - 11-16-2012, 10:30 PM
Ender News - by candlejack131 - 09-25-2012, 03:23 AM



Users browsing this thread: 9 Guest(s)