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
Can you re-enable areas once used?
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#2
RE: Can you re-enable areas once used?

void OnStart()
{

AddEntityCollideCallback(" ", "Script Area", "callback1", true, 1);

AddEntityCollideCallback(" ", "
Script Area ", "callback2", true, 1);

}


void
callback1(string &in asParent, string &in asChild, int alState)


{
SetSwingDoorClosed("door2", 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);
}




void callback2(string &in asParent, string &in asChild, int alState)

{
SetSwingDoorClosed("door2", 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);
}

try that dude Smile
and you that If(Haveitem) bla bla bla or how that script is

http://wiki.frictionalgames.com/hpl2/amn...unds_music

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 03-09-2012, 08:25 AM by jessehmusic.)
03-09-2012, 08:18 AM
Website Find


Messages In This Thread
Can you re-enable areas once used? - by Nevicar - 03-09-2012, 08:01 AM
RE: Can you re-enable areas once used? - by jessehmusic - 03-09-2012, 08:18 AM



Users browsing this thread: 4 Guest(s)