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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#9
RE: Force player to look somewhere

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.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-12-2012, 03:19 PM
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 The chaser - 10-12-2012, 03:19 PM
RE: Force player to look somewhere - by naseem142 - 10-12-2012, 04:28 PM



Users browsing this thread: 3 Guest(s)