Looking For Help? Look No More! - 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) +--- Thread: Looking For Help? Look No More! (/thread-10026.html) |
RE: Looking For Help? Look No More! - Homicide13 - 09-17-2011 There's a check box for all static objects under the "static object" tab labeled "collides." Make sure this is unchecked, and the grass should work fine. If you already have a lot of grass layed down, press ctrl+f to open the find menu and just type in "grass" or whatever and go down the list un-checking this box. RE: Looking For Help? Look No More! - Your Computer - 09-17-2011 (09-17-2011, 05:14 AM)Homicide13 Wrote: The latest, 2.59 I think In Object Mode, make sure the mesh of choice has a material attached to it. Materials can be accessed here: With the mesh still selected, go into the Texture panel: With the texture selected, in the Texture panel change the type to "Image or Movie." Under the Image category click "open" and select an image to be your texture. Under the Mapping category, change Coordinates to UV. Now all you have to do is map the faces of the mesh to the texture in the UV/Image Editor (the image you chose for the material would be in the list of textures in the UV/Image Editor). In order to do so you must first unwrap your mesh onto the texture. Watch this video to understand the basics of unwrapping: http://cgcookie.com/blender/2011/01/21/intro_uvmapping/ RE: Looking For Help? Look No More! - AmnesiaIsScary :S - 09-17-2011 I have 2 problems : 1. I Don't know how to use the prop impulse exactly ... This is my entity name : chair_nice02_1 Can you maybe show me the exact command ? 2. I Don't know how to use the PlaySoundAtEntity Command ... Do I need to make an "AddPlayerCallBack" and then put it under it (After the } ) ? Or should I just put and and insert the commands ? Like this : //////////////////////////// // Run first time starting map void OnStart() { void PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound); } and what to put in the "string& asSoundName" ? RE: Looking For Help? Look No More! - Obliviator27 - 09-17-2011 (09-17-2011, 12:26 PM)AmnesiaIsScary :S Wrote: I have 2 problems :When you have your scripts, you only need to put void in front of the parent functions. In this case, if you want a sound to play right when the map starts, you only need void OnStart() { PlaySoundAtEntity("[what goes here is what the internal name of the sound will be called, can leave blank, but leave the quotation marks]", "[sound file + .snt extension.]", "[entity to play at]", [time it takes the sound to fade], [still not sure what this does, i personally leave at false]); } Propimpulse works rather simply. It's basically the same as propforce, as far as I can tell. If it's different, someone is free to correct me. Anyhow, AddPropImpulse("[Prop being pushed]", [Amount Along the X axis], [Amount along the Y axis], [Amount along the Z axis], "world"); Hope this clears things up for you. RE: Looking For Help? Look No More! - AmnesiaIsScary :S - 09-17-2011 (09-17-2011, 05:11 PM)Obliviator27 Wrote:ok and how do I call a function when touching an entity ? like a door slams behind me ...(09-17-2011, 12:26 PM)AmnesiaIsScary :S Wrote: I have 2 problems :When you have your scripts, you only need to put void in front of the parent functions. In this case, if you want a sound to play right when the map starts, you only need RE: Looking For Help? Look No More! - Elven - 09-17-2011 quick question - what are those functions more: OnEnter and OnLeave ? For what they are used for ? RE: Looking For Help? Look No More! - Obliviator27 - 09-17-2011 (09-17-2011, 09:23 PM)AmnesiaIsScary :S Wrote:Depends on what you want. If you want a door to slam shut behind the player when they walk into a room, add a script area on the other side of the door. Then, it's a basic CollideCallback(09-17-2011, 05:11 PM)Obliviator27 Wrote:ok and how do I call a function when touching an entity ? like a door slams behind me ... void OnStart() { AddEntityCollideCallback("Player", "[Area]", "DoorSlam", true, 1); } void DoorSlam(string &in asParent, string &in asChild, int alState) { SetSwingDoorClosed("[Door Name]", true, true); } __________________________________________________________________________________________ Quote:quick question - what are those functions more: OnEnter and OnLeave ? For what they are used for ?OnEnter are the changes/scripts that occur upon entering the map from another. OnLeave are changes that occur to that particular map when the player leaves it. RE: Looking For Help? Look No More! - Elven - 09-17-2011 so basically like doors? To change music when player enters into that area, etc ? I had this idea but had to confirm it too RE: Looking For Help? Look No More! - Obliviator27 - 09-18-2011 (09-17-2011, 11:50 PM)Elven Wrote: so basically like doors? To change music when player enters into that area, etc ? I had this idea but had to confirm it tooYou can think of it this way. Player enters an area for the first time. Certain scripts are called, usually from the OnStart Player leaves the map, but then returns to it. OnEnter scripts take effect upon returning, ans OnLeave take effect upon leaving. But basically, with leveldoors, yes. |