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
Script Help Crank / Pulley Problem..
Pshyched Offline
Member

Posts: 130
Threads: 21
Joined: Nov 2012
Reputation: 5
#1
Crank / Pulley Problem..

Hey guys, been awhile since I've posted here but I have a bit of an Issue...

I'm attempting to try and do something where the player attaches a bucket onto the rope, and the crank then turns (On its own) and lifts the bucket up, after X amount of seconds, it'll come back down again (On its own, again)...

But I am not exactly sure how to go about this, if anyone has any advice It'd be gladly appreciated Smile
07-17-2016, 05:30 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Crank / Pulley Problem..

Hello!

I searched a little bit and found this video: https://www.youtube.com/watch?v=Ksn4lHxbgPg
For connecting the bucket to the rope it seems you want to use:

PHP Code: (Select All)
void AddAttachedPropToProp(stringasPropNamestringasAttachNamestringasAttachFilefloat afPosXfloat afPosYfloat afPosZfloat afRotXfloat afRotYfloat afRotZ); 

For rotating the crank, I would use:

PHP Code: (Select All)
void SetWheelAngle(stringasNamefloat afAnglebool abAutoMove); 

Yet I'm not sure whether this can make the wheel turn by itself in an animated way. If it doesn't, maybe you can use a timer that calls very often and turns the wheel just a tiny bit at a time, until it's finished.

The x amount of seconds thing is just a timer.

Trying is the first step to success.
07-20-2016, 11:38 AM
Find




Users browsing this thread: 1 Guest(s)