Restart a whole battle? - 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: Restart a whole battle? (/thread-27067.html) |
Restart a whole battle? - Amnesiaplayer - 10-31-2014 Hello!! i'm finished with my Halloween custom story!! but the end is a boss battle.. where you have to Lure 3 monster into the gate. afte they are all in a portal will appear where you can ESCAPE!! but the problem is, if YOU fall in the gate, you will die to! (or the monster smashes you) how am i supposed to restart the WHOLE map and WHOLE functions, like i'm by the FINAL monster, and i die. then i will respawn back to the place where i respawned at begin, and i have to begin ALL over agian (boss battle) so the first boss.. Can someone help me fast Please!! i want to finish this today to publish it on modbb RE: Restart a whole battle? - MsHannerBananer - 10-31-2014 I managed to bring back my monsters with the checkpoint script. You can make a collide script box, and the function you call for it can be the checkpoint. The checkpoint function callback can reset your monsters and other functions. I believe you may have to put additional monsters that are inactive that are set to active during the checkpoint callback, however you may not have to do that, just fiddle around and see what works for you. This is an example of what the script would look like for that: Spoiler below!
You'd have to play around with names, obviously, to see what works for you, but that should work. RE: Restart a whole battle? - Amnesiaplayer - 10-31-2014 Thanks but for secure, my Monster2 is Active if the Monster1 Falls down the gate, and Monster3 is avaible after Monster2 Falls, that works, right? I'm going to try everything. Thank you RE: Restart a whole battle? - Mudbill - 11-01-2014 Monsters de-spawn when you die. If you re-enable them using SetEntityActive within the check point callback, they should reappear from their original position, like missy said. RE: Restart a whole battle? - DnALANGE - 11-01-2014 You can also add ResetProp function. This will reset props. i use it to reset cars driving RE: Restart a whole battle? - Darkfire - 11-01-2014 Hey, while we are at it: If I deactivate and activate an Entity, will it reset it's position ? It would help me at closing doors without using prop force, because these functions require lot of tweaking ;( RE: Restart a whole battle? - FlawlessHappiness - 11-01-2014 (11-01-2014, 07:06 PM)Darkfire Wrote: Hey, while we are at it: If I deactivate and activate an Entity, will it reset it's position ? It would help me at closing doors without using prop force, because these functions require lot of tweaking ;( No. To reset an entity use ResetProp. To close a door, use SetSwingDoorClosed |