![]() |
[SCRIPT] Flying Monolith Script! - SOLVED - 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] Flying Monolith Script! - SOLVED (/thread-26969.html) |
Flying Monolith Script! - SOLVED - MsHannerBananer - 10-26-2014 Can't seem to find any script help for this, and using the original orb chamber script from the game doesn't make things any clearer. I want to understand the script, not just throw it in there and hope it works. Long story short, as the title suggests, I'm looking for script to help with spinning the monoliths continuously. It's as simple (or hard?) as that. Thanks to anyone who helps me out. ![]() RE: Flying Monolith Script! - Mudbill - 10-26-2014 There was a time when I spun a vinyl record 'round and 'round, and to do so, I used the script "RotatePropToSpeed." Maybe that works for you. I do think the entity will need to be a specific type though. PHP Code: RotatePropToSpeed("ts_vinyl_1", 5.0f, 5.0f, 0.0f, -360.0f, 0.0f, false, ""); This is the script I used, but yours would be different. First is the name, but the two next floats (the 5.0f's) determine the accelleration and optimal speed. The three next floats are X Y and Z axes. Since I spun it like a vinyl, it would spin around the Y axis, but yours probably needs either X or Z. The boolean is whether the speed is reset at max (bit unsure what they mean) and the last string is an offset area (the point you want it to rotate around). If you leave it empty like I did, it will rotate around its center. Also, it says on the page that the entity must be a StaticObject entity, but it worked fine for me with a MoveObject entity. But in the entity itself (in User Defined Variables), I had to add this: ![]() RE: Flying Monolith Script! - Darkfire - 10-26-2014 Actually, I think it doesn't matter. I converted static object into an entity and it worked fine, without that option. (but if this doesn't, do as Mudbill says, he's the pro one here) RE: Flying Monolith Script! - MsHannerBananer - 10-26-2014 Thanks MudBill. I completely forgot about the rotateprop. I didn't have to change anything about the monolith. I literally just added the script and the force to the Z axis and it spins like a never-ending spinning top, haha. ![]() Edit: Also, I hate to turn 69 into 70, but... have a rep. LOL RE: Flying Monolith Script! - SOLVED - Mudbill - 10-26-2014 (10-26-2014, 08:13 PM)MsHannerBananer Wrote: Edit: Also, I hate to turn 69 into 70, but... have a rep. LOL Hue. |