Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help making wheel spin continuesly!
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#1
help making wheel spin continuesly!

i am trying to figure out a way to make a wheel spin continuesly, but i just cant seem to nail it! any of you who got an idea or have done it before?
(This post was last modified: 09-09-2012, 07:51 PM by bjaffedj.)
09-09-2012, 05:48 PM
Find
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#2
RE: help making wheel spin continuesly!

yes, since the other problem actually was solved. this is another part of the problem.
09-09-2012, 06:37 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#3
RE: help making wheel spin continuesly!

Are you saying "making the wheel spin continuously"? On its own?

Sorry, I have a massive headache right now, and my vision's slurred, and I can't think.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
09-09-2012, 06:47 PM
Website Find
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#4
RE: help making wheel spin continuesly!

yes on its own. i have a trigger, which i wan't to activate a script with which makes a valve wheel spin continuesly on its own. but i just can't seem to fin any form of scripting to do so
09-09-2012, 06:58 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#5
RE: help making wheel spin continuesly!

Here
void RotatePropToSpeed(string& asName, float afAcc, float afGoalSpeed, float afAxisX, float afAxisY, float afAxisZ, bool abResetSpeed, string& asOffsetArea);

Additional info:


Rotates the prop up to a set speed.asName - internal name
afAcc - acceleration
afGoalSpeed - desired speed
afAxisX - rotation around X axis
afAxisY - rotation around Y axis
afAxisZ - rotation around Z axis
abResetSpeed - determines whether the speed is resetted after goal speed is reached
asOffsetArea - the area to rotate around, if ””, then the center of the body is used
Note: The entity you want to rotate MUST be a “StaticObject” entity!


Try this, and experiment with each of the values. If the pipe is rotating the wrong way, you used an incorrect axis. You may need to use 2 axises if neither work alone. As I said, experiment.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 09-09-2012, 07:02 PM by Robby.)
09-09-2012, 07:01 PM
Website Find
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#6
RE: help making wheel spin continuesly!

thank you sir! i will try this out!
09-09-2012, 07:04 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#7
RE: help making wheel spin continuesly!

(09-09-2012, 07:04 PM)bjaffedj Wrote: thank you sir! i will try this out!
You're welcome. Also, experiment with all values (start with one at a time)! After some time, you shall find the right thing.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
09-09-2012, 07:08 PM
Website Find




Users browsing this thread: 1 Guest(s)