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!
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#11
RE: I NEED HELP!

(02-18-2013, 02:17 PM)Adrianis Wrote: 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...
Kinda like that. But i want it to play once, like this;
When i was not looking, the piano plays.
When i was looking at it, it suddenly stops (like JJJRRRREEENNNG!), and there's a dust figure. Just once.
Also, in number #3, the force value / direction is what? the "500" thing?

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-18-2013, 02:43 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: 1 Guest(s)