monster - 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: monster (/thread-9401.html) Pages:
1
2
|
monster - Tirilno - 07-26-2011 Ehm.. I'm wondring about how I can make the monster destroy the boxes when it's chasing you, like in Justine. Anyone knows how? please help if you know anything. RE: monster - Russ Money - 07-26-2011 Do you mean something like this? http://www.youtube.com/watch?v=FANr-XWaVD8&feature=player_detailpage#t=835s It's essentially an area the player walks over and the boxes are set to 0 health. The monster is spawned behind those boxes. RE: monster - Tirilno - 07-26-2011 (07-26-2011, 09:05 PM)Russ Money Wrote: Do you mean something like this? No. If you have played justine, when malo are chasing you in the tunnel when you hear that he's smashing the boxes behind you and you're like "NOOOO! NO!! NO!! Don't kill me!! I'm dead!" RE: monster - MrCookieh - 07-26-2011 I just think that they are in his way, and he pushes them away. Don't know if it's possible to force a monster to destroy boxes RE: monster - Tirilno - 07-26-2011 (07-26-2011, 09:29 PM)MrCookieh Wrote: I just think that they are in his way, and he pushes them away. It is. there are an area with this name around the boxes in that tunnel Area_EnemyBreaksThroughDebris_1 and in the script it is something too complicated for me to understand since I'm new at script and that. Read yourself(if you have justine) under ////////////////////////////////////////////////////////// // TUNNEL CHASE ////////////////////////////////////////////////////////// in 03_Dungeon.hps. RE: monster - MrCookieh - 07-26-2011 okay, it seems, that the boxes in certain areas get destroyed by this command: SetPropHealth("a"+iArea+"b_*", 0); So the health of the boxes are set to 0, and (I've never tried it) they get destroyed by this. Try to add this line: SetPropHealth("nameofyourbox", 0); and watch if it gets destroyed. But be sure to uncheck the disableBreakable in the entity's menu of your box RE: monster - Tirilno - 07-26-2011 (07-26-2011, 09:46 PM)MrCookieh Wrote: okay, it seems, that the boxes in certain areas get destroyed by this command: nope it doesn't work..I get an error when I try to go into the room. I tried to name my boxes like in the game: a1b_1 in Area_EnemyBreaksThroughDebris_1 a2b_1 in Area_EnemyBreaksThroughDebris_2 a3b_1 in Area_EnemyBreaksThroughDebris_3 and leaved the SetPropHealth("a"+iArea+"b_*", 0); at that. so my script is now: void CollideEnemyEndCrash(string &in asParent, string &in asChild, int alState) { (asChild == "Area_EnemyBreaksThroughDebris_1") BreakTunnelBoxEffect(asChild, 1); (asChild == "Area_EnemyBreaksThroughDebris_2") BreakTunnelBoxEffect(asChild, 2); (asChild == "Area_EnemyBreaksThroughDebris_3") BreakTunnelBoxEffect(asChild, 3); } void BreakTunnelBoxEffect(string &in sEntity, int iArea) { PlaySoundAtEntity("bangs", "break_wood_metal", sEntity, 0.0f, false); PlaySoundAtEntity("bangs", "attack_launch", sEntity, 0.0f, false); SetPropHealth("a"+iArea+"b_*", 0); StartScreenShake(0.05f, 0.4f, 0.2f, 0.6f); } RE: monster - MrCookieh - 07-26-2011 not sure if it's possible to write like that, but aren't the if missing? if(asChild == "Area_EnemyBreaksThroughDebris_1"){ BreakTunnelBoxEffect(asChild, 1); } I always write it like that, so I dunno if this is just another way to type it RE: monster - Tirilno - 07-26-2011 (07-26-2011, 10:51 PM)MrCookieh Wrote: not sure if it's possible to write like that, but aren't the if missing?I didn't get any error, thanks But the boxes didn't break or something. RE: monster - MrCookieh - 07-27-2011 Hmm, I have no clue, maybe you could compare the different options of the boxes (yours and the boxes of justine) Maybe they are special boxes, already looked in the entity tab 'ptest'? |