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
Help.. Again :)
Fanstetic Offline
Junior Member

Posts: 8
Threads: 2
Joined: Aug 2012
Reputation: 0
#10
RE: Help.. Again :)

Ok, I'm going to re-word my question, i have 4 doors, one i want to slam which is in a different place then the other 3 doors, the door that slams has its own script area and everything, i just want to know how to make the other script area blow up the three doors, so theres one script area infront of the slamming door, (which works) and theres an area infront of the other 3 doors. I want to make it so the 3 doors explode by running through one script area, then walk through the door, walk through another script area and make that door slam shut. the script is..

void OnStart()

{
AddEntityCollideCallback("Player", "script_slam 1", "func_slam", true, 1);
SetEntityPlayerInteractCallback("door smash 1", "func_slam", true);
SetEntityPlayerInteractCallback("door smash 2", "func_slam", true);
SetEntityPlayerInteractCallback("door smash 3", "func_slam", true);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("prison1", 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);

SetPropHealth("door smash 1", 0.0f);

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);

SetPropHealth("door smash 2", 0.0f);

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);

SetPropHealth("door smash 3", 0.0f);

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);
}
08-31-2012, 07:22 AM
Find


Messages In This Thread
Help.. Again :) - by Fanstetic - 08-31-2012, 12:08 AM
RE: Help.. Again :) - by Kazakarumariou - 08-31-2012, 12:25 AM
RE: Help.. Again :) - by Fanstetic - 08-31-2012, 12:32 AM
RE: Help.. Again :) - by Streetboat - 08-31-2012, 03:19 AM
RE: Help.. Again :) - by Kazakarumariou - 08-31-2012, 12:32 AM
RE: Help.. Again :) - by Fanstetic - 08-31-2012, 01:22 AM
RE: Help.. Again :) - by Kazakarumariou - 08-31-2012, 01:43 AM
RE: Help.. Again :) - by Fanstetic - 08-31-2012, 02:25 AM
RE: Help.. Again :) - by FlawlessHappiness - 08-31-2012, 06:29 AM
RE: Help.. Again :) - by Fanstetic - 08-31-2012, 07:22 AM
RE: Help.. Again :) - by Steve - 08-31-2012, 08:19 AM
RE: Help.. Again :) - by Fanstetic - 08-31-2012, 08:49 AM
RE: Help.. Again :) - by FlawlessHappiness - 08-31-2012, 10:59 AM



Users browsing this thread: 1 Guest(s)