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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Work in progress Insanity of Your Mind V2
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#14
RE: Insanity of Your Mind V2

To make it spin you mean? You would use RotatePropToSpeed();. Use false in abResetSpeed, a plain "" in the last value, and experiment with the other values!

Spoiler below!
PHP Code: (Select All)
void RotatePropToSpeed(stringasNamefloat afAccfloat afGoalSpeedfloat afAxisXfloat afAxisYfloat afAxisZbool abResetSpeedstringasOffsetArea); 
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 empty, then the center of the body is used Note: The entity you want to rotate MUST be a “StaticObject” entity!


If this is incorrect, have a look at the rotating wheel in the Sewers near the entrance. It would be a very similar scenario to what you are wanting. Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 04-29-2018, 02:21 PM by Romulator.)
04-29-2018, 02:12 PM
Find


Messages In This Thread
Insanity of Your Mind V2 - by MatiCekuriel - 10-09-2017, 07:59 PM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 10-12-2017, 12:20 PM
RE: Insanity of Your Mind V2 - by i3670 - 10-13-2017, 09:55 AM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 10-13-2017, 11:32 AM
RE: Insanity of Your Mind V2 - by Reminiscity - 11-02-2017, 11:06 AM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 11-06-2017, 03:41 PM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 04-19-2018, 09:39 AM
RE: Insanity of Your Mind V2 - by Organic Shelter - 04-19-2018, 07:12 PM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 04-20-2018, 09:56 AM
RE: Insanity of Your Mind V2 - by Organic Shelter - 04-20-2018, 11:10 AM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 04-21-2018, 08:03 AM
RE: Insanity of Your Mind V2 - by Organic Shelter - 04-21-2018, 12:08 PM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 04-29-2018, 09:43 AM
RE: Insanity of Your Mind V2 - by Romulator - 04-29-2018, 02:12 PM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 04-29-2018, 04:22 PM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 06-16-2018, 10:17 AM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 07-22-2019, 07:55 PM
RE: Insanity of Your Mind V2 - by Mudbill - 07-23-2019, 05:55 PM
RE: Insanity of Your Mind V2 - by MatiCekuriel - 07-23-2019, 07:55 PM
RE: Insanity of Your Mind V2 - by Mudbill - 07-24-2019, 04:27 PM



Users browsing this thread: 3 Guest(s)