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
Force player to look somewhere
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#10
RE: Force player to look somewhere

(10-12-2012, 03:19 PM)The chaser Wrote: You didn't "say" to the script the name of the script area, it should be like this:

void OnStart()

{

    AddEntityCollideCallback("Player", "slamdoor", "func_slam", true, 1);

}



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

{

SetSwingDoorClosed("doorman", 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);

}

Always that it doesn't work is for the callback. Well, that's the normal issue.
it worked , thank you Smile
10-12-2012, 04:28 PM
Website Find


Messages In This Thread
Force player to look somewhere - by naseem142 - 10-12-2012, 01:26 PM
RE: Force player to look somewhere - by Robby - 10-12-2012, 01:57 PM
RE: Force player to look somewhere - by naseem142 - 10-12-2012, 02:35 PM
RE: Force player to look somewhere - by Lizard - 10-12-2012, 02:34 PM
RE: Force player to look somewhere - by naseem142 - 10-12-2012, 02:53 PM
RE: Force player to look somewhere - by naseem142 - 10-12-2012, 03:07 PM
RE: Force player to look somewhere - by naseem142 - 10-12-2012, 04:28 PM



Users browsing this thread: 7 Guest(s)