The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Rotating cogs bugging like mad
ApeCake Offline
Member

Posts: 116
Threads: 20
Joined: Jun 2012
Reputation: 4
#1
Rotating cogs bugging like mad

I wanted some rotating cogs in my machine room, so I placed some elevator_machine_cog_small entities in my map. Then I wrote this script;

void OnStart()
{

RotatePropToSpeed("elevator_machine_cog_small_1", 0, 5, 1, 1, 1, false, "");
RotatePropToSpeed("elevator_machine_cog_small_2", 0, 4, 0, 1, 0, false, "");
RotatePropToSpeed("elevator_machine_cog_small_3", 0, 6, 0, 1, 0, false, "");
RotatePropToSpeed("elevator_machine_cog_small_4", 0, 2, 0, 1, 0, false, "");
RotatePropToSpeed("elevator_machine_cog_small_5", 0, 2, 0, 1, 0, false, "");
RotatePropToSpeed("elevator_machine_cog_small_6", 0, 4, 0, 1, 0, false, "");
}

However, the cogs do not move the way I want it to. Right now only one of them is visible somehow and is spinning through the ground. I checked the axis', and I think I chose the right one. I clicked on one of the cogs and spinned them in the level editor and saw that the Y was increasing. So I added 1 to Y (not sure about the first cog, but 2-6 is should be all Y). However, it STILL does this. Any help? I looked at the machine room from The Dark Descent but the code was kind of confusing, and the only part I think to get it working is RotatePropToSpeed.

[Image: Ff7q8.jpg]

Thanks in advance.
(This post was last modified: 07-02-2012, 06:37 PM by ApeCake.)
07-01-2012, 03:09 PM
Find


Messages In This Thread
Rotating cogs bugging like mad - by ApeCake - 07-01-2012, 03:09 PM
RE: Rotating cogs bugging like mad - by Adny - 07-01-2012, 03:36 PM
RE: Rotating cogs bugging like mad - by ApeCake - 07-01-2012, 04:17 PM
RE: Rotating cogs bugging like mad - by Datguy5 - 07-01-2012, 04:36 PM
RE: Rotating cogs bugging like mad - by Damascus - 07-01-2012, 05:30 PM
RE: Rotating cogs bugging like mad - by ApeCake - 07-01-2012, 08:49 PM
RE: Rotating cogs bugging like mad - by Adny - 07-01-2012, 09:19 PM
RE: Rotating cogs bugging like mad - by ApeCake - 07-01-2012, 09:55 PM



Users browsing this thread: 1 Guest(s)