| EddieShoe   Junior Member
 
 Posts: 28
 Threads: 6
 Joined: Sep 2010
 Reputation: 
0
 | 
			| RE: Lever help needed [UNSOLVED] 
 
				So, I think I got what you meant. It works for me on my map, but I am not 100% sure this is what you wanted. I'm no pro at this either, I just tried my best. I've learned a lot from Your Computer so you should definitely try out his tutorials. Anyway, here's the script:
 void leverfunc(string &in asEntity, int alState)
 {
 if (alState == 1)
 {
 SetSwingDoorClosed("your_door_here", false, false); Don't know if this has to be here, opens to door.
 SetSwingDoorDisableAutoClose("your_door_here ", true); Disables auto-closing of the door.
 AddPropImpulse("your_door_here ", X, Y, >, "world"); Opens the door in the desired direction.
 return;
 }
 if (alState == -1)
 SetSwingDoorClosed("your_door_here", true, false); Closes the door.
 }
 
 EDIT: Maybe you want to add SetSwingDoorDisableAutoClose("your_door_here ", false); under the -1 state as well, just before the SetSwingDoorClosed.
 
 Currently working on: "Awake"Progress: ~5%
 
				
(This post was last modified: 07-04-2012, 03:56 PM by EddieShoe.)
 |  | 
	| 07-04-2012, 03:55 PM |  |