Lever problem - 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: Lever problem (/thread-15174.html) |
Lever problem - WLN73 - 04-29-2012 Hi .... excuseme for my bad english first I have a little problem with a lever .... im tryed to turn on/off a light .... all working but the lever moves by itself from all sides .... as if trembling ... This is the script i maked: void OnEnter() { SetEntityPlayerInteractCallback("switch1", "func1", true); } void func1(string &in EntityName, int alState) { if( alState == -1) SetLampLit("light1", false, true); if( alState == 1) SetLampLit("light1", true, true); } What did I do wrong? why the lever goes crazy??? RE: Lever problem - JMFStorm - 04-29-2012 I've had same problem sometimes. I got it fixed when I dramatically changed the position of the lever (like for example the other side of the map) -.- RE: Lever problem - jessehmusic - 04-29-2012 (04-29-2012, 06:50 PM)WLN73 Wrote: Hi .... excuseme for my bad english firstvoid OnEnter() { SetEntityPlayerInteractCallback("switch1", "func1", true); } void func1(string &in EntityName, int alState) { if( alState == -1) SetLampLit("light1", false, true); if( alState == 1) SetLampLit("light1", true, true); } ____________________________________________________ Instert this SetLeverStuckState(string& asName, int alState, bool abEffects); RE: Lever problem - WLN73 - 04-29-2012 (04-29-2012, 06:53 PM)JMFStorm Wrote: I've had same problem sometimes. I got it fixed when I dramatically changed the position of the lever (like for example the other side of the map) -.-Thanks....yes....now working (04-29-2012, 07:05 PM)jessehmusic Wrote: Instert thisThank you but with this line i can't move the lever..... |