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
Script Help Anyone know their way around RotatePropToSpeed?
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#1
Anyone know their way around RotatePropToSpeed?

I'm trying different ways to get this function to do something. I'm currently trying to use it on a StaticObject (wall_corridor_1) with no success.

I'm using this call in my OnStart() function:
RotatePropToSpeed("wall_corridor_1", 100.0f, 100.0f, 30.0f, 30.0f, 30.0f, false, "");

Dark Seclusion Here
05-26-2012, 10:40 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Anyone know their way around RotatePropToSpeed?

Static_objects are unable to be moved at all. Only Entities can be moved with script/or by the player. Smile

05-26-2012, 10:42 PM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#3
RE: Anyone know their way around RotatePropToSpeed?

"Note: The entity you want to rotate MUST be a “StaticObject” entity!"
Taken from the Engine Scripts page.

Dark Seclusion Here
05-26-2012, 11:12 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Anyone know their way around RotatePropToSpeed?

Yes a static entity not a static_object Smile

05-26-2012, 11:14 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#5
RE: Anyone know their way around RotatePropToSpeed?

Static object entities are entities with the properties of static objects (complicated, I know). This means things in the entities tab that can't really be interacted with without the help of additional scripting. Gears/cogs are a superb example of this, they can't be interacted with, but can be scripted to rotate in place and are found in the entities tab. Hope that helped! Tongue

I rate it 3 memes.
05-26-2012, 11:16 PM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#6
RE: Anyone know their way around RotatePropToSpeed?

I was so confused. But now I understand.

Is there any tell-tale way to tell if it can be affected by this function?

Dark Seclusion Here
05-27-2012, 12:19 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: Anyone know their way around RotatePropToSpeed?

Enabling static physics for an entity tends to allow the entity to rotate with that function.

Tutorials: From Noob to Pro
05-27-2012, 01:24 AM
Website Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#8
RE: Anyone know their way around RotatePropToSpeed?

Aw! Awesome. Just tried that, and now it gives me more options to do stuffs!

Dark Seclusion Here
05-27-2012, 01:48 AM
Find




Users browsing this thread: 3 Guest(s)