Frictional Games Forum (read-only)
Moving suroundings - 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: Moving suroundings (/thread-18857.html)



Moving suroundings - Melvin - 10-20-2012

How can I make my surrounding move while I stand still? (while riding a train and looking out of the window.)

Is it even possible?

thanks!


RE: Moving suroundings - Adny - 10-20-2012

You can try something similar to the way the elevator event was done in the original game; make a model (in your case, an outdoor environment) then move the model using the following function:

void SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);


Hope that helped.


RE: Moving suroundings - Statyk - 10-20-2012

Agreed. For one of my WIP mods, I made an infinite looping hallway menu. I simply modeled a long hallway, split it in half, applied a bone to each, and basically pushed them in one direction. When one was completely behind the player's view, it wrapped underneath and placed cleverly behind the other. The loop was made seamless within 200 Maya frames, thankfully =]