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
Slam Door script help.
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Slam Door script help.

void OnStart()
{  
    AddEntityCollideCallback("Player", "slam_attic_1", "Attic_Slam", true, 1);
}
void Attic_Slam(string &in asParent, string &in asChild, int alState)
{
    SetSwingDoorClosed("attic_slam_1", 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);
}

The last string parameter and the parameter after the return_type (in this case void) is the function, not the door/script name.

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-20-2013, 12:39 AM
Find


Messages In This Thread
Slam Door script help. - by GoreGrinder99 - 07-19-2013, 10:23 PM
RE: Slam Door script help. - by DeAngelo - 07-20-2013, 12:13 AM
RE: Slam Door script help. - by GoreGrinder99 - 07-20-2013, 12:32 AM
RE: Slam Door script help. - by PutraenusAlivius - 07-20-2013, 12:39 AM
RE: Slam Door script help. - by GoreGrinder99 - 07-20-2013, 12:54 AM



Users browsing this thread: 1 Guest(s)