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
Multiple Issues Help I NEED HELP!
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#10
RE: I NEED HELP!

For 3, you'll want to use AddPropForce to push the door, but have the function repeat using a timer, and have the force switch sides so it is pushing the door closed, then open, closed again etc. You could just look in the wine cellar scripts to see how FG did it, of course.

Perhaps something like this...

void OnEnter()
{
SetSwingDoorDisableAutoClose("doorname", true); // to make sure the door does not close
AddTimer("DoorBangOpen", 2, "DoorBang");
}

void DoorBang(string &in strTimer)
{
if (strTimer == "DoorBangOpen") {
AddPropForce("doorname", 0, 0, 500, "local"); // you'll need to play around with the force value / direction
AddTimer("DoorBangClose", 1, "DoorBang");
}
else if (strTimer == "DoorBangClose") {
AddPropForce("doorname", 0, 0, -1000, "local"); // you'll need to play around with the force value / direction, note reversal of direction from above
AddTimer("DoorBangOpen", 2, "DoorBang");
}
}

For point 2, you want the piano to be playing, but to stop playing when the player looks at it. Then you want the piano to start playing again when the player looks away? and stop again when they look back? etc etc...

(This post was last modified: 02-18-2013, 02:18 PM by Adrianis.)
02-18-2013, 02:17 PM
Find


Messages In This Thread
I NEED HELP! - by PutraenusAlivius - 02-17-2013, 12:21 PM
RE: I NEED HELP! - by No Author - 02-17-2013, 12:45 PM
RE: I NEED HELP! - by i3670 - 02-17-2013, 12:48 PM
RE: I NEED HELP! - by PutraenusAlivius - 02-17-2013, 02:18 PM
RE: I NEED HELP! - by 343 - 02-17-2013, 03:41 PM
RE: I NEED HELP! - by No Author - 02-18-2013, 12:17 AM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 09:58 AM
RE: I NEED HELP! - by No Author - 02-18-2013, 10:16 AM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 02:05 PM
RE: I NEED HELP! - by Adrianis - 02-18-2013, 02:17 PM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 02:43 PM
RE: I NEED HELP! - by TheGreatCthulhu - 02-18-2013, 03:05 PM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 03:17 PM
RE: I NEED HELP! - by Adrianis - 02-18-2013, 11:04 PM



Users browsing this thread: 2 Guest(s)