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

(03-17-2013, 12:48 PM)JustAnotherPlayer Wrote:
(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.

Well i know the lever thing, But i still don't get the script you gave me, i know it a bit but i mean what should i do OnStart(); i mean it isnt a EntityCollide or what?

BTW if you didnt see it i wanna make the script in the campaign at the machinery but they had those 8up and 8down and the 3 sticks more to get it working i want only the coal and coqwheels if you know what i mean.

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


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



Users browsing this thread: 1 Guest(s)