The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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.
GoreGrinder99 Offline
Member

Posts: 166
Threads: 47
Joined: Feb 2013
Reputation: 1
#1
Slam Door script help.

I'm trying to set up a slam door script. This is what I have -

void OnStart()
{
AddEntityCollideCallback("Player", "slam_attic_1", "attic_slam_1", true, 1);
}
void slam_attic_1(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);
}

slam_attic_1 is the script name and attic_slam_1 is the door name.

-Grind to the Gore-
(This post was last modified: 08-17-2013, 11:36 PM by GoreGrinder99.)
07-19-2013, 10:23 PM
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)