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
Need some help with this script....
Doctorcheese Offline
Senior Member

Posts: 272
Threads: 28
Joined: Jan 2011
Reputation: 0
#13
RE: Need some help with this script....

Ok so I made a new script, I'm trying to replicate the scene where you encounter a grunt at the
Spoiler below!
stair in the prison from Amnesia

I had a look at their script file and here's how I changed it a bit:
(The area is now called ScriptArea_1 and the grunt(placeholder) is called servant_grunt_1.)

////////////////////////////
// Run first time starting map
void OnStart()
{
//GRUNT WHEN PASSING THE SCRIPT AREA
void CollideAreaScriptArea_1(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("servant_grunt_1", true);
    
    AddTimer("scare", 1.0f, "TimerPlayerReact");
    AddTimer("breath", 3.0f, "TimerPlayerReact");
    AddTimer("breathl", 5.0f, "TimerPlayerReact");
    
    ShowEnemyPlayerPosition("servant_grunt_1");
}

Any errors here? If there are no errors it must be the Area that is not colliding, in that case how do I make it collide with the player?

''Sick, twisted child... You'll burn for this!''
(This post was last modified: 06-19-2011, 06:35 AM by Doctorcheese.)
06-19-2011, 06:34 AM
Find


Messages In This Thread
RE: Need some help with this script.... - by Doctorcheese - 06-19-2011, 06:34 AM



Users browsing this thread: 1 Guest(s)