![]() |
How do you make an object move in 3 directions? - 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: How do you make an object move in 3 directions? (/thread-29879.html) Pages:
1
2
|
RE: How do you make an object move in 3 directions? - FlawlessHappiness - 05-04-2015 I made a thing that moves an object! PHP Code: void MoveObject(float afAmountX, float afAmountY, float afAmountZ, string &in asObject, float afSpace, float afFreq) To make it move an object you write PHP Code: MoveObject(float afAmountX, float afAmountY, float afAmountZ, string &in asObject, float afSpace, float afFreq); afAmountX = The amount to move on the X-axis Can be both positive and negative. afAmountY = The amount to move on the Y-axis Can be both positive and negative. afAmountZ = The amount to move on the Z-axis Can be both positive and negative. asObject = The entity to move. afSpace = The amount of space the object moves with, per frequence. Must be above 0. If used with a frequence at 0.01f: 0.01f is kinda slow. 0.02f is quicker. afFreq = How often the object moves. Must be above 0. 0.01f looks really smooth. Variables used in this script: float "MoveFreq_"+asObject float "MoveAmountX_"+asObject float "MoveAmountY_"+asObject float "MoveAmountZ_"+asObject float "MoveSpaceX_"+asObject float "MoveSpaceY_"+asObject float "MoveSpaceZ_"+asObject int "Moving"+asObject |