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!
VeNoMzTeamHysterical Offline
Member

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

(03-17-2013, 12:40 PM)JustAnotherPlayer Wrote: For the cogwheels being turning, use the script below.

Spoiler 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.


But you know what the hard part is that the lever to open the gate at the machinery has to know if the Fuel is in the furnace, And if the coqwheels are on the place.

But thanks anyway for the coqwheels script Wink
You're a beast and you know it +rep.

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
03-17-2013, 12:47 PM
Website Find


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



Users browsing this thread: 1 Guest(s)