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? - xtron - 05-23-2011 @WatzUpzPeepz What is "DoorSlamArea" and "CollideDoorSlam"? are they some random names or some kind of function? EDIT: nvm I made it work ^^. thanks! btw!: How do i do so the door destroys when i enter the script? RE: Anyone need help? - Kyle - 05-23-2011 (05-23-2011, 08:08 PM)Simpanra Wrote: How do i make my player walk forward of their own accord WITHOUT the scripts from justine? Perhaps make the floor move instead and to play the step sound every second or something? So I take it the Justine walk script isn't working for you. :/ (05-23-2011, 08:32 PM)xtron Wrote: @WatzUpzPeepz Use this script command in a function when you want the door to break: SetPropHealth("DoorName", -100); RE: Anyone need help? - Simpanra - 05-23-2011 Yeah =/ It just crashes each time RE: Anyone need help? - xtron - 05-24-2011 Thanks Kyle but...I think that my map doesn't load my .HPS file. I made a map named starter1.map and a starter1.hps then, when I was finish moding it I made a starter2.map and a starter2.hps but the custom story doesn't load my starter2.hps. Anyone knows why this is happening? btw: I want to make a separate function for the door destroying part. Do you know the syntax code etc for it?. thanks RE: Anyone need help? - havis1337 - 05-24-2011 I could use some help, i made a thread tho...but how do i make a bottle to be automatically thrown from a table to a wall? RE: Anyone need help? - DannieWest - 05-24-2011 (05-24-2011, 08:50 PM)havis1337 Wrote: I could use some help, i made a thread tho...but how do i make a bottle to be automatically thrown from a table to a wall? I'd say make a ScriptArea, AddEntityCollideCallback, and then use AddPropImpulse, so that when the player walks in to the area the bottle flies away! Then just experiment with the amount of force you use, depending on how fast you want the bottle to fly RE: Anyone need help? - Mooserider - 05-26-2011 I really need to know how to make a sort of continuous function - Because what I want is if at any time in the level the player's health drops below 100, a function is called. I know how I would use an if statement, I just need the function. PS Sorry if this has already been asked, I haven't seen it anywhere. RE: Anyone need help? - Kyle - 05-26-2011 (05-26-2011, 08:26 AM)Mooserider Wrote: I really need to know how to make a sort of continuous function - Because what I want is if at any time in the level the player's health drops below 100, a function is called. I know how I would use an if statement, I just need the function. You have to remember that AngelScript works pretty much like C++. In C++, you can make functions that have nothing in their parentheses and just call them all you want, when you want. Code: void OnStart() This should work. RE: Anyone need help? - Mooserider - 05-26-2011 Ah, thanks a million Kyle. RE: Anyone need help? - Kyle - 05-28-2011 (05-26-2011, 11:38 AM)Mooserider Wrote: Ah, thanks a million Kyle. You're welcome. *Insert Bump Here* |