Please Explain This... - 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: Please Explain This... (/thread-5021.html) |
Please Explain This... - Kyle - 10-11-2010 For some reason, I'm having trouble with getting pathnodes to work and for the end of the pathnodes that removes servant_grunt_1. The Script: void OnStart() { AddEntityCollideCallback("CellarDoor2" , "ScriptArea_2" , "CollideRoomThree" , true, 1); AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideRoomTwo" , true, 1); AddUseItemCallback("", "Cellar Key" , "CellarDoor" , "UsedKeyOnDoor" , true); } void CollideRoomTwo(string &in asParent, string &in asChild, int alState) { SetSwingDoorClosed("cellar_wood01_1", true, true); GiveSanityDamage(25, true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked(asEntity, false, true); SetLevelDoorLocked(asEntity, false); PlaySoundAtEntity("unlocksound", "unlock_door.snt", asEntity, 0.0f, false); RemoveItem(asItem); } void CollideRoomThree(string &in asParent, string &in asChild, int alstate) { SetEntityActive("servant_grunt_1" , true); } void OnEnter() { } void OnLeave() { } RE: Please Explain This... - Youcef - 10-11-2010 http://www.frictionalgames.com/forum/thread-4437-post-37680.html#pid37680 RE: Please Explain This... - Kyle - 10-11-2010 Thanks! A nice and simple answer! |