![]() |
|
Making monster go away - 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: Making monster go away (/thread-7785.html) |
Making monster go away - Dominic0904 - 05-03-2011 Hey I got a question, I've got it so a monster appears after I walk into a script area. He chases me and smashes down the door, I hid in the closet. But he just stands there, he does not look around the room and such. How can I script it so after like 10 seconds or so the monster will go away and disappear or become non-active again, is it something to do with Path nodes? (Which i got no idea about). Sorry I am still very new to this scripting business. RE: Making monster go away - Roenlond - 05-03-2011 You can use pathnodes to move the monster around and another pathnode which will lead the monster through a script area. When they collide, call a FadeEnemyToSmoke function. I'll give you an example script in an hour or so if you can't figure it out =) RE: Making monster go away - Dominic0904 - 05-03-2011 I example script would help a lot, I would learn a lot quicker that way But I can give it a try as well. Just the example would help
RE: Making monster go away - Roenlond - 05-03-2011 Right, here we go: Code: ////////////////////////////////That should do it, all the stuff in quotes will need to be named exactly like in the script, so be sure to either switch the names of the entities, paths, areas, etc, to the script names, or vice versa. "//" Means that it is a comment explaining what each part does, and will not have any effect on the script. If I didn't mess something up, it should function if you did your part correctly. Good luck! Please respond if you're getting any error and I'll fix it
RE: Making monster go away - Dominic0904 - 05-03-2011 Thanks dude, I'll have to give it a go tomorrow and will let you know!
|