![]() |
How to make encounters? - 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: How to make encounters? (/thread-4353.html) Pages:
1
2
|
RE: How to make encounters? - sacroid - 09-15-2010 Hmmm... PathNode doesn't seem to work, the despawn area works perfectly, I throw a box into the despawn area to "distract" him and make him go there and when he steps the area he dissapears, so that's perfect, but the waypoint isn't working! :S Here is the script, I'm so sure something is wrong: Code: void OnStart() RE: How to make encounters? - jens - 09-15-2010 It's a simple fix ![]() Check a map from Amnesia to see how you should spread them out (what a good distances between each node is) and also to see how they should be aligned to the floor. RE: How to make encounters? - sacroid - 09-15-2010 (09-15-2010, 05:01 PM)jens Wrote: It's a simple fix Oh! How can I be so dumb? haha, thanks Jens! I'll check the original Amnsesia Maps ![]() By the way, I'm going to publish this test map later and see your opinions about my first day with the editor ![]() RE: How to make encounters? - Ethril - 01-12-2011 I tried doing the same as Sacroid with trying to make a zombie spawn if an area of type script is touched but no matter how I do so he just won't spawn? I have his active boxed ticked off. I have unticked all the boxes in the area section of the Script Area. here is my script :< Btw corpseroom = the script area, cannibal = name of the monster void onStart() { AddUseItemCallback("", "strangekey_1", "cellar_wood01_2", "UsedKeyOnDoor", true); AddEntityCollideCallback("Player", "corpseroom", "Collidecorpseroom", true, 1); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("cellar_wood01_2", false, true); PlaySoundAtEntity("", "unlock_door", "cellar_wood01_2", 0, false); RemoveItem("strangekey_1"); } void onEnter() { } void Collidecorpseroom(string &in asParent, string &in asChild, int alState) { SetEntityActive("cannibal", true); } void OnLeave() { } could someone please tell me where I have gone wrong ![]() RE: How to make encounters? - Tony32 - 01-12-2011 (09-15-2010, 02:31 PM)jens Wrote: the enemy will disable by himself when he has walked his path and you are not in a position where you can see him. Is that true? If so, nice ^^ Thanks ![]() RE: How to make encounters? - Neatherblade - 01-12-2011 Try this Ethril. Code: void onStart() if you have it onEnter() the engine will run the script as soon you enter the map. |