Argh, I don't even want to ask this....

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
$nake
Private
Posts: 6
Joined: Sun Jun 30, 2002 1:23 am
Location: At home
Contact:

Argh, I don't even want to ask this....

Post by $nake »

How do you make a door open when a switch is pressed? :oops: I donno know if I am saying this right.
Ravir's Target Range (Server IP: 207.246.199.220) - Home of FLARE - Server:
Moal
Moderator
Posts: 150
Joined: Wed Jun 05, 2002 6:45 am
Location: Lexington Ky

Post by Moal »

Switch door
make a normal door
then hit n chose Not_Player and Targeted
give it key/value targetname door1
set angle

unselect

then right click (where you want trigger) and pick Tigger_Use
hit n
give it key/value target door1

unselect
Creater of MOHpile
Play With Honor
$nake
Private
Posts: 6
Joined: Sun Jun 30, 2002 1:23 am
Location: At home
Contact:

Post by $nake »

:P Sweet thanks dude, ill give it a shot after.
Ravir's Target Range (Server IP: 207.246.199.220) - Home of FLARE - Server:
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

function rotating door

Post by tltrude »

The function doors have builtin triggers, so I guess you want to know how to add a working switch.

$door1:

$door1_trigger waittill trigger
$door1_switch anim turn
$door1_switch anim waittill animdone
wait 2
$door1_switch anim on
$door1_switch anim waittill animdone
end

Basically, the rotating elevator switch has three animations; off, on, and turn, but off and on do the same thing. In your map you will have to make the door a target of the trigger and turn off its builtin trigger (read the gray box when you hit key N). Also put "setthread" with a value of "door1" in the trigger enitity properties to call for the above thread.

Good luck.
Tom Trude,

Image
Moal
Moderator
Posts: 150
Joined: Wed Jun 05, 2002 6:45 am
Location: Lexington Ky

Post by Moal »

script not needed in this instance
if you do what I posted above it will do it
Creater of MOHpile
Play With Honor
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

!

Post by tltrude »

Moal's way will work fine if you just want a fake button under the trigger.
Tom Trude,

Image
Moal
Moderator
Posts: 150
Joined: Wed Jun 05, 2002 6:45 am
Location: Lexington Ky

Post by Moal »

tltrude ways does make for a better looking switch with the anim
Creater of MOHpile
Play With Honor
Post Reply