Frictional Games Forum (read-only)

Full Version: Anyone know their way around RotatePropToSpeed?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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, "");
Static_objects are unable to be moved at all. Only Entities can be moved with script/or by the player. Smile
"Note: The entity you want to rotate MUST be a “StaticObject” entity!"
Taken from the Engine Scripts page.
Yes a static entity not a static_object Smile
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 was so confused. But now I understand.

Is there any tell-tale way to tell if it can be affected by this function?
Enabling static physics for an entity tends to allow the entity to rotate with that function.
Aw! Awesome. Just tried that, and now it gives me more options to do stuffs!