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
#5
RE: Machinery Func 'Coqwheels,Coal' To open a Gate!

(03-17-2013, 12:47 PM)VeNoMzTeamHysterical Wrote:
(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.
But, do you know how to make the script ready for use in the .hps?
EDIT:
For the lever thing, use a local variable or a if-else statement.

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


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



Users browsing this thread: 1 Guest(s)