![]() |
Anyone need help? - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Anyone need help? (/thread-7825.html) |
RE: Anyone need help? - Ge15t - 05-13-2011 (05-13-2011, 12:35 AM)Acies Wrote: Ge15t: I tried them both and neither of them work. Lol im sure that just the candles will be fine for the time being. Thanks for the help RE: Anyone need help? - Selyp - 05-13-2011 Looking for a creative way of implementing a carraige ride. I am thinking to build a small room (the interior of the carriage, with a view to the outside of the room, add sound fx, and make the room move with the player inside. Not sure if this is feasible with scripting, can you make a room slowly move as if it was a carriage. Any ideas on alternatives? RE: Anyone need help? - Kyle - 05-13-2011 (05-13-2011, 05:21 AM)Selyp Wrote: Looking for a creative way of implementing a carraige ride. I am thinking to build a small room (the interior of the carriage, with a view to the outside of the room, add sound fx, and make the room move with the player inside. Not sure if this is feasible with scripting, can you make a room slowly move as if it was a carriage. Any ideas on alternatives? The Village custom story seems to do it pretty good. ![]() Look at the elevator in Amnesia and see how they moved the wall instead of the actual elevator. RE: Anyone need help? - Greven - 05-14-2011 Hi thear, So i havent completely grasped the whole "if" command thingy and I wonder if you could either describe it (know it might be tiresome) or just link to a tutorial that makes sence. Also how do i get a door to swing or bang open? RE: Anyone need help? - Kyle - 05-14-2011 (05-14-2011, 08:30 AM)Greven Wrote: Hi thear, An "if" statement is when you ask the game if something is compaired to something else. When you want to use it, you must have 3 things: An item or thing that you are using, a value or another thing, and a reason why you are using it. Lets say this: Code: x = 1; This shows how it could work, but if you have a local variable instead of a variable that is limited to its function, it is more advanced. Code: void OnStart() I think I know how. Use this: AddPropImpulse("DoorName", 1.0f, 0.0f, 0.0f, "world"); It depends on which way you want it to go. For it to open, you need to give the door a force with one of the axis. The first one is x, second, y, and the third, z. If you want the door to blast open, try a little more. RE: Anyone need help? - Greven - 05-14-2011 hmmm... ok, but what do you use these commands for? like give an example of something (sry for being stupid ![]() RE: Anyone need help? - Kyle - 05-14-2011 (05-14-2011, 02:41 PM)Greven Wrote: hmmm... ok, but what do you use these commands for? like give an example of something (sry for being stupid Here is an example. It checks to see if the local variable is equal to 2 once the player interacts with an object and enters an area. Then causing the player, when they enter some other area, having a light to turn off by itself. Complex? Not really. :p Code: OnStart() RE: Anyone need help? - Simpanra - 05-14-2011 Hi, i really need some help =) I want to make my custom story begin with a fade in form black and the player walking forward by itself. I want them to walk about two or three metres forward and then stop and give the player back control =) I dont have the expansion and so i can't use the MovePlayerForward(af floatAmount) function, please help =) Thanks ^_^ RE: Anyone need help? - Roenlond - 05-14-2011 Only thing I can think of is the AddPlayerBodyForce(float afX, float afY, float afZ, bool abUseLocalCoords); command, although Kyle might be able to find a better answer. RE: Anyone need help? - Greven - 05-14-2011 (05-14-2011, 01:39 PM)Kyle Wrote: I think I know how. What does the "world" stand for? |