problems with scripting - 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: problems with scripting (/thread-9708.html) |
RE: problems with scripting - Tesseract - 08-13-2011 Im not very good with levers im still trying to get my head around it try playing around with. void StateChange(string &in EntityName, int alState) { if(alState == 1) SetLeverStuckState(asMainEntity, -1, true); SetSwingDoorLocked("Ceiling", false, true); SetEntityActive("Exit_Guard01" , true); PlaySoundAtEntity("LeverExit01", "levelexitopen.ogg", "Player", 0.5f, false); AddEnemyPatrolNode("Exit_Guard01", "Path9", 0.1f, "true"); // There are more pathnodes, but then my post would explode... xD } Oh and dont forget the callback: SetEntityConnectionStateChangeCallback("YourLeverName", "StateChange"); RE: problems with scripting - Brute - 08-13-2011 Sadly this line exist in my script... And it doesn't work. I had never thought, that is it so hard to make levers and buttons... I had tried everything. But I am sure, there is just a very, very small mistake... RE: problems with scripting - Brute - 08-16-2011 So the problem still exist. Would be nice, when you told me how to make a lever from beginning. This means, what scripts must I wrote and what must I adjust in the editor. RE: problems with scripting - Brute - 08-19-2011 So guys, I think, I should give you some secret infos I am making a custom story, that could interest you, maybe I will release a demo next weekend! But YOU must help me with scripting. Just show me how to make levers, and maybe other stuff, I should asked you. I will promise you will don't dissapointed! |