[SCRIPT] Anyone know their way around RotatePropToSpeed? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Anyone know their way around RotatePropToSpeed? (/thread-15644.html) |
Anyone know their way around RotatePropToSpeed? - FragdaddyXXL - 05-26-2012 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, ""); RE: Anyone know their way around RotatePropToSpeed? - SilentStriker - 05-26-2012 Static_objects are unable to be moved at all. Only Entities can be moved with script/or by the player. RE: Anyone know their way around RotatePropToSpeed? - FragdaddyXXL - 05-26-2012 "Note: The entity you want to rotate MUST be a “StaticObject” entity!" Taken from the Engine Scripts page. RE: Anyone know their way around RotatePropToSpeed? - SilentStriker - 05-26-2012 Yes a static entity not a static_object RE: Anyone know their way around RotatePropToSpeed? - Adny - 05-26-2012 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! RE: Anyone know their way around RotatePropToSpeed? - FragdaddyXXL - 05-27-2012 I was so confused. But now I understand. Is there any tell-tale way to tell if it can be affected by this function? RE: Anyone know their way around RotatePropToSpeed? - Your Computer - 05-27-2012 Enabling static physics for an entity tends to allow the entity to rotate with that function. RE: Anyone know their way around RotatePropToSpeed? - FragdaddyXXL - 05-27-2012 Aw! Awesome. Just tried that, and now it gives me more options to do stuffs! |