(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.
////////////////////////////
// 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.
////////////////////////////
// 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!