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
Forcing view of the player to look at a door when it slams shut
DrDean Offline
Junior Member

Posts: 28
Threads: 7
Joined: Jun 2008
Reputation: 1
#3
RE: Forcing view of the player to look at a door when it slams shut

I'm trying this, but it's giving me curly bracket errors.


void OnStart()
{
AddEntityCollideCallback("Player", "pooarea", "func_slam", true, 1); //Func for door slam/player look
}




void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", 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 StartPlayerLookAt(string& mansion_1, 1, 1, string& func_slam);
{ //Gives the error here
}
void StopPlayerLookAt();
{ //And here
}

If I'm doing this correctly, which I'm obviously not, the player's view should shift to the door (mansion_1) when they enter the script area (pooarea aka func_slam)
(This post was last modified: 02-12-2012, 07:34 PM by DrDean.)
02-12-2012, 07:32 PM
Find


Messages In This Thread
RE: Forcing view of the player to look at a door when it slams shut - by DrDean - 02-12-2012, 07:32 PM



Users browsing this thread: 2 Guest(s)