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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Machinery Func 'Coqwheels,Coal' To open a Gate!
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Machinery Func 'Coqwheels,Coal' To open a Gate!

For the cogwheels being turning, use the script below.

PHP Code: (Select All)
void RotatePropToSpeed(stringasNamefloat afAccfloat afGoalSpeedfloat afAxisXfloat afAxisYfloat afAxisZbool abResetSpeedstringasOffsetArea); 
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
The object that you wanna turn MUST BE A STATIC OBJECT.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-17-2013, 12:46 PM by PutraenusAlivius.)
03-17-2013, 12:40 PM
Find


Messages In This Thread
RE: Machinery Func 'Coqwheels,Coal' To open a Gate! - by PutraenusAlivius - 03-17-2013, 12:40 PM



Users browsing this thread: 2 Guest(s)