Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lever help needed
EddieShoe Offline
Junior Member

Posts: 28
Threads: 6
Joined: Sep 2010
Reputation: 0
#6
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
Find


Messages In This Thread
Lever help needed - by Steve - 07-03-2012, 08:57 PM
RE: Lever help needed - by Steve - 07-04-2012, 01:11 PM
RE: Lever help needed [UNSOLVED] - by Steve - 07-04-2012, 02:01 PM
RE: Lever help needed [UNSOLVED] - by EddieShoe - 07-04-2012, 03:55 PM
RE: Lever help needed [UNSOLVED] - by Steve - 07-04-2012, 04:22 PM
RE: Lever help needed [UNSOLVED] - by EddieShoe - 07-04-2012, 04:37 PM
RE: Lever help needed [UNSOLVED] - by Cruzore - 07-04-2012, 04:23 PM
RE: Lever help needed [UNSOLVED] - by Steve - 07-04-2012, 04:56 PM
RE: Lever help needed [UNSOLVED] - by EddieShoe - 07-04-2012, 05:14 PM
RE: Lever help needed [UNSOLVED] - by Steve - 07-04-2012, 05:37 PM
RE: Lever help needed [UNSOLVED] - by EddieShoe - 07-04-2012, 05:42 PM
RE: Lever help needed [UNSOLVED] - by Steve - 07-04-2012, 05:45 PM
RE: Lever help needed [UNSOLVED] - by EddieShoe - 07-04-2012, 05:56 PM
RE: Lever help needed - by Steve - 07-04-2012, 06:29 PM
RE: Lever help needed - by Traggey - 07-04-2012, 06:40 PM
RE: Lever help needed - by Steve - 07-04-2012, 07:04 PM
RE: Lever help needed [Unsolved] - by Traggey - 07-04-2012, 07:09 PM
RE: Lever help needed - by Cruzore - 07-04-2012, 07:13 PM
RE: Lever help needed - by Steve - 07-04-2012, 07:16 PM
RE: Lever help needed - by Cruzore - 07-04-2012, 07:17 PM
RE: Lever help needed - by Steve - 07-04-2012, 07:22 PM
RE: Lever help needed - by EddieShoe - 07-04-2012, 07:25 PM
RE: Lever help needed - by Steve - 07-04-2012, 07:26 PM
RE: Lever help needed - by Steve - 07-04-2012, 09:01 PM
RE: Lever help needed - by EddieShoe - 07-04-2012, 10:48 PM



Users browsing this thread: 8 Guest(s)