[HELP] Scripting Cranks - 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: [HELP] Scripting Cranks (/thread-11788.html) |
[HELP] Scripting Cranks - Victor - 12-11-2011 What are the scripts for cranks? Like, I want the player to turn it, and then stuff happens? Help, please! RE: [HELP] Scripting Cranks - palistov - 12-12-2011 SetEntityConnectionStateChangeCallback(string& wheelName, string& callback); The parameters for the callback function are (string &in entity, int state). You'll have to fiddle with it to see which direction you turn the wheel/crank corresponds to which state. I believe -1 is min, 0 is middle and 1 is max. |