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


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

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
RE: Slenderman Monster

(09-09-2012, 12:19 AM)warmacha11 Wrote:
(09-09-2012, 12:00 AM)candlejack131 Wrote:
(09-08-2012, 11:45 PM)warmacha11 Wrote:
(09-08-2012, 09:00 PM)candlejack131 Wrote:
(09-08-2012, 08:36 PM)warmacha11 Wrote: ok i made a script for Slender man.

except i used a box in the place of slender man

you place a box down, click on the active button in the level editor and then place down a script area in front of the box

name the box SlenderDude and the script area SlenderMan.

when you walk to it, you wont see the box, but when you touch the script area the box will spawn behind you, when you look at the box it will kill you with one hit.

void OnStart()
{
AddEntityCollideCallback("Player", "SlenderMan", "slendy", true, 1);
SetEntityPlayerLookAtCallback("SlenderDude", "Kill", true);
}
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 OnEnter()
{

}

void OnLeave()
{

}
How do i integrate that into this hps
Spoiler below!
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key_laboratory_1", "mansion_6", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "DICKY", "MonsterFunction", 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, "");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

The servant_grunts is just what i have them named in the level editor for i tend to reuse hps's its easier that way servant_grunt_2 is a hallucination to startle the player that immediately disappears and servant_grunt_1 hunts.
but nobody has ever seen slenderman move so you dont need him to have grunt characteristics.

unless you werent referring to slenderman... but if you want to the script it in your game then all you need to do is erase everything in your script and copy and paste this into it... all i did is copy and paste your script and put in the slender man script.
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);
}
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);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

and ofcourse you can use the area scipt as the look callback instead of the box. also once you figure out how i was able to make the box "kill" you when you look at it, you can make a look callback scripts around the player so that when the player spots slenderman off in the distance where he wont kill you, and you look away, he will dissapear when you look back at him! Big Grin
Okay so my slendermans name in the map is servant_grunt_1 which is the one that should kill the player on sight and servant_grunt_2 is just a hallucination so 1. Were do i place the script that will kill the player with eye contact 2.What do i call it my playercollide spawns both at once. 3. What are slenderman SlenderDude and slendy which once is which? will one make the monster disappear and will one make the player die and is one the actual monster? I am a noob scripter which is why i ask you but i am a decent level designer
(its ok, im still in developemint on my first custom map two, but once you learn how to use the engine script on the frictional games wiki, you will be able to make almost whatever you want in your game.)

ok, you make a long flat floor, (in map editor) and put the playerstart area on one side, put a script area in the middle, name it SlenderMan. put a box a few feat behind the Script area, (side closest to the PlayerStartArea) uncheck the box that says Active in the box's general tab. Name the box SlenderDude. and then your done, the script will take care of the rest.
You mean box like a block box or like a container box and should i use my slenderman model instead or put it inside of him
09-09-2012, 12:25 AM
Find


Messages In This Thread
Slenderman Monster - by candlejack131 - 07-22-2012, 04:26 AM
RE: Slenderman Monster - by Kman - 07-22-2012, 05:45 AM
RE: Slenderman Monster - by candlejack131 - 07-22-2012, 06:18 AM
RE: Slenderman Monster - by Traggey - 07-22-2012, 12:02 PM
RE: Slenderman Monster - by ferryadams10 - 09-04-2012, 01:24 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 07-22-2012, 12:20 PM
RE: Slenderman Monster - by Traggey - 07-22-2012, 12:29 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 07-22-2012, 12:42 PM
RE: Slenderman Monster - by candlejack131 - 07-22-2012, 05:57 PM
RE: Slenderman Monster - by Traggey - 07-22-2012, 06:40 PM
RE: Slenderman Monster - by candlejack131 - 07-22-2012, 06:46 PM
RE: Slenderman Monster - by Traggey - 07-22-2012, 09:34 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 07-22-2012, 11:12 PM
RE: Slenderman Monster - by candlejack131 - 07-22-2012, 11:54 PM
RE: Slenderman Monster - by Kman - 07-23-2012, 12:30 AM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 12:44 AM
RE: Slenderman Monster - by Anxt - 07-23-2012, 01:01 AM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 01:03 AM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 03:33 AM
RE: Slenderman Monster - by Anxt - 07-23-2012, 01:22 AM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 01:28 AM
RE: Slenderman Monster - by Anxt - 07-23-2012, 01:42 AM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 01:54 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 07-23-2012, 08:13 AM
RE: Slenderman Monster - by Traggey - 07-23-2012, 11:47 AM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 03:24 PM
RE: Slenderman Monster - by candlejack131 - 07-26-2012, 04:27 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 07-23-2012, 12:39 PM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 08:43 PM
RE: Slenderman Monster - by candlejack131 - 07-23-2012, 11:20 PM
RE: Slenderman Monster - by candlejack131 - 08-10-2012, 03:52 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-10-2012, 11:14 AM
RE: Slenderman Monster - by candlejack131 - 08-12-2012, 01:10 AM
RE: Slenderman Monster - by Ghieri - 08-11-2012, 01:54 PM
RE: Slenderman Monster - by Traggey - 08-12-2012, 09:31 AM
RE: Slenderman Monster - by candlejack131 - 08-12-2012, 06:49 PM
RE: Slenderman Monster - by Traggey - 08-12-2012, 07:03 PM
RE: Slenderman Monster - by candlejack131 - 08-13-2012, 05:19 AM
RE: Slenderman Monster - by Traggey - 08-13-2012, 10:02 AM
RE: Slenderman Monster - by candlejack131 - 08-13-2012, 11:25 PM
RE: Slenderman Monster - by candlejack131 - 08-17-2012, 02:18 AM
RE: Slenderman Monster - by Traggey - 08-18-2012, 03:52 PM
RE: Slenderman Monster - by candlejack131 - 08-18-2012, 05:34 PM
RE: Slenderman Monster - by candlejack131 - 08-20-2012, 09:13 PM
RE: Slenderman Monster - by Statyk - 08-21-2012, 12:53 AM
RE: Slenderman Monster - by candlejack131 - 08-21-2012, 03:27 AM
RE: Slenderman Monster - by darkely - 08-21-2012, 01:18 AM
RE: Slenderman Monster - by Your Computer - 08-21-2012, 01:34 AM
RE: Slenderman Monster - by Statyk - 08-21-2012, 04:05 AM
RE: Slenderman Monster - by candlejack131 - 08-21-2012, 08:11 AM
RE: Slenderman Monster - by triadtimes - 08-21-2012, 08:48 AM
RE: Slenderman Monster - by Kman - 08-21-2012, 08:40 AM
RE: Slenderman Monster - by Kman - 08-21-2012, 08:49 AM
RE: Slenderman Monster - by Traggey - 08-21-2012, 09:09 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-21-2012, 11:13 AM
RE: Slenderman Monster - by candlejack131 - 08-21-2012, 09:07 PM
RE: Slenderman Monster - by Traggey - 08-21-2012, 09:09 PM
RE: Slenderman Monster - by candlejack131 - 08-21-2012, 09:20 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-21-2012, 09:39 PM
RE: Slenderman Monster - by candlejack131 - 08-21-2012, 10:00 PM
RE: Slenderman Monster - by Statyk - 08-22-2012, 05:04 PM
RE: Slenderman Monster - by candlejack131 - 08-23-2012, 10:50 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-22-2012, 05:34 PM
RE: Slenderman Monster - by Statyk - 08-23-2012, 11:50 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-24-2012, 12:12 AM
RE: Slenderman Monster - by candlejack131 - 08-24-2012, 07:54 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-24-2012, 11:42 AM
RE: Slenderman Monster - by candlejack131 - 08-24-2012, 11:03 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-25-2012, 12:30 PM
RE: Slenderman Monster - by candlejack131 - 08-27-2012, 12:57 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-27-2012, 01:51 AM
RE: Slenderman Monster - by candlejack131 - 08-28-2012, 07:42 PM
RE: Slenderman Monster - by candlejack131 - 08-27-2012, 04:24 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-27-2012, 10:23 AM
RE: Slenderman Monster - by candlejack131 - 08-27-2012, 04:41 PM
RE: Slenderman Monster - by Traggey - 08-28-2012, 09:00 PM
RE: Slenderman Monster - by candlejack131 - 08-28-2012, 09:55 PM
RE: Slenderman Monster - by Traggey - 08-28-2012, 10:54 PM
RE: Slenderman Monster - by candlejack131 - 08-28-2012, 11:36 PM
RE: Slenderman Monster - by Streetboat - 08-29-2012, 12:57 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-29-2012, 01:04 AM
RE: Slenderman Monster - by Statyk - 08-29-2012, 01:07 AM
RE: Slenderman Monster - by candlejack131 - 08-29-2012, 03:10 AM
RE: Slenderman Monster - by darkely - 08-29-2012, 03:51 AM
RE: Slenderman Monster - by Kman - 08-29-2012, 03:29 AM
RE: Slenderman Monster - by Adny - 08-29-2012, 04:02 AM
RE: Slenderman Monster - by johnbox - 08-29-2012, 04:49 AM
RE: Slenderman Monster - by Statyk - 08-29-2012, 02:46 PM
RE: Slenderman Monster - by candlejack131 - 08-29-2012, 06:01 PM
RE: Slenderman Monster - by candlejack131 - 08-30-2012, 07:46 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-30-2012, 08:57 PM
RE: Slenderman Monster - by candlejack131 - 08-31-2012, 06:16 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 08-31-2012, 07:11 AM
RE: Slenderman Monster - by Obliviator27 - 08-31-2012, 01:52 PM
RE: Slenderman Monster - by candlejack131 - 09-01-2012, 09:28 PM
RE: Slenderman Monster - by candlejack131 - 09-01-2012, 10:17 PM
RE: Slenderman Monster - by Kman - 09-01-2012, 11:13 PM
RE: Slenderman Monster - by candlejack131 - 09-01-2012, 11:44 PM
RE: Slenderman Monster - by Obliviator27 - 09-02-2012, 01:05 AM
RE: Slenderman Monster - by candlejack131 - 09-02-2012, 02:21 AM
RE: Slenderman Monster - by candlejack131 - 09-02-2012, 11:58 PM
RE: Slenderman Monster - by Traggey - 09-03-2012, 12:55 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 09-04-2012, 02:08 PM
RE: Slenderman Monster - by ferryadams10 - 09-04-2012, 02:11 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 09-04-2012, 02:27 PM
RE: Slenderman Monster - by ferryadams10 - 09-04-2012, 02:28 PM
RE: Slenderman Monster - by candlejack131 - 09-04-2012, 11:05 PM
RE: Slenderman Monster - by ferryadams10 - 09-06-2012, 05:11 PM
RE: Slenderman Monster - by warmacha11 - 09-06-2012, 09:06 PM
RE: Slenderman Monster - by candlejack131 - 09-07-2012, 03:58 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 09-07-2012, 04:45 PM
RE: Slenderman Monster - by candlejack131 - 09-07-2012, 06:06 PM
RE: Slenderman Monster - by warmacha11 - 09-07-2012, 06:58 PM
RE: Slenderman Monster - by candlejack131 - 09-07-2012, 07:27 PM
RE: Slenderman Monster - by The chaser - 09-07-2012, 07:49 PM
RE: Slenderman Monster - by warmacha11 - 09-07-2012, 07:51 PM
RE: Slenderman Monster - by candlejack131 - 09-07-2012, 08:55 PM
RE: Slenderman Monster - by The chaser - 09-07-2012, 10:02 PM
RE: Slenderman Monster - by FlawlessHappiness - 09-08-2012, 11:51 AM
RE: Slenderman Monster - by candlejack131 - 09-08-2012, 04:50 PM
RE: Slenderman Monster - by warmacha11 - 09-08-2012, 04:02 AM
RE: Slenderman Monster - by FlawlessHappiness - 09-08-2012, 06:23 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 09-08-2012, 07:26 PM
RE: Slenderman Monster - by FlawlessHappiness - 09-08-2012, 07:31 PM
RE: Slenderman Monster - by candlejack131 - 09-08-2012, 11:10 PM
RE: Slenderman Monster - by The chaser - 09-08-2012, 07:29 PM
RE: Slenderman Monster - by candlejack131 - 09-08-2012, 07:36 PM
RE: Slenderman Monster - by The chaser - 09-08-2012, 08:07 PM
RE: Slenderman Monster - by FlawlessHappiness - 09-08-2012, 08:12 PM
RE: Slenderman Monster - by candlejack131 - 09-08-2012, 08:53 PM
RE: Slenderman Monster - by warmacha11 - 09-08-2012, 08:36 PM
RE: Slenderman Monster - by FlawlessHappiness - 09-08-2012, 08:56 PM
RE: Slenderman Monster - by candlejack131 - 09-08-2012, 09:00 PM
RE: Slenderman Monster - by warmacha11 - 09-08-2012, 11:45 PM
RE: Slenderman Monster - by candlejack131 - 09-09-2012, 12:00 AM
RE: Slenderman Monster - by warmacha11 - 09-09-2012, 12:19 AM
RE: Slenderman Monster - by candlejack131 - 09-09-2012, 12:25 AM
RE: Slenderman Monster - by warmacha11 - 09-09-2012, 12:35 AM
RE: Slenderman Monster - by warmacha11 - 09-11-2012, 05:33 PM
RE: Slenderman Monster - by The chaser - 09-11-2012, 05:49 PM
RE: Slenderman Monster - by candlejack131 - 09-11-2012, 09:10 PM
RE: Slenderman Monster - by Streetboat - 09-12-2012, 04:03 AM
RE: Slenderman Monster - by warmacha11 - 09-12-2012, 05:01 AM
RE: Slenderman Monster - by candlejack131 - 09-12-2012, 08:29 PM
RE: Slenderman Monster - by Streetboat - 09-13-2012, 12:55 AM
RE: Slenderman Monster - by candlejack131 - 09-13-2012, 12:11 AM
RE: Slenderman Monster - by warmacha11 - 09-13-2012, 12:32 AM
RE: Slenderman Monster - by candlejack131 - 09-13-2012, 12:44 AM
RE: Slenderman Monster - by warmacha11 - 09-13-2012, 12:48 AM
RE: Slenderman Monster - by candlejack131 - 09-13-2012, 01:24 AM
RE: Slenderman Monster - by warmacha11 - 09-13-2012, 02:09 AM
RE: Slenderman Monster - by candlejack131 - 09-13-2012, 11:24 AM
RE: Slenderman Monster - by candlejack131 - 09-13-2012, 09:48 PM
RE: Slenderman Monster - by candlejack131 - 09-27-2012, 08:21 PM
RE: Slenderman Monster - by darkely - 09-27-2012, 08:35 PM
RE: Slenderman Monster - by candlejack131 - 09-28-2012, 01:23 AM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 09-28-2012, 01:54 PM
RE: Slenderman Monster - by candlejack131 - 09-28-2012, 08:10 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 09-29-2012, 11:08 PM
RE: Slenderman Monster - by candlejack131 - 09-29-2012, 11:39 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 10-01-2012, 01:14 PM
RE: Slenderman Monster - by candlejack131 - 10-01-2012, 08:08 PM
RE: Slenderman Monster - by xxxxxxxxxxxxxxxx - 10-02-2012, 10:52 AM



Users browsing this thread: 7 Guest(s)