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
#3
RE: Help.. Again :)

(08-31-2012, 12:25 AM)Harthex Wrote: Right off the bat
SetEntityPlayerInteractCallback("door smash 1, door smash 2, door smash 3", "func_slam", true);


Don't use various ones at once
Do this \/
SetEntityPlayerInteractCallback("door smash 1", "func_slam1", true);

SetEntityPlayerInteractCallback("door smash 2", "func_slam2", true);

SetEntityPlayerInteractCallback("door smash 3", "func_slam3", true);
So like this.. (Still doesn't work, but it's a start)

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 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);
}
08-31-2012, 12:32 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)