Multiple trap doors

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Casquebleu
Lance Corporal
Posts: 24
Joined: Sun Dec 22, 2002 9:54 am
Location: France

Multiple trap doors

Post by Casquebleu »

Hi,

I'm trying to make 2 trap doors that open together, i've only a pb, I can't find the code to make them open together. Here's the script :

trap_door_mover:

$trap_door_trigger waittill trigger
$trap_door1 time 2
$trap_door time 2
$trap_door playsound ("door_metal_open_move" + (randomint(1) + 3))
$trap_door rotateXup 90
$trap_door1 rotateXup -90
$trap_door waitmove
$trap_door1 waitmove
$trap_door playsound door_metal_open_stop
wait 2
$trap_door playsound ("door_metal_close_move" + (randomint(1) + 3))
$trap_door rotateXdown 90
$trap_door1 rotateXdown -90
$trap_door waitmove
$trap_door1 waitmove
$trap_door playsound ("door_metal_close_stop" + (randomint(3) + 1))

goto trap_door_mover

end

Any ideas ??? Thx for your help

:roll:
Caskou, Mappeur Fou
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You have some lines saying:
$trap_door waitmove
$trap_door1 waitmove

change it to
$trap_door move
$trap_door1 waitmove

8-)
Image
Casquebleu
Lance Corporal
Posts: 24
Joined: Sun Dec 22, 2002 9:54 am
Location: France

Post by Casquebleu »

Ooopss :roll:

You're right, didn't see that :?

Thx again JV :wink:
Caskou, Mappeur Fou
Post Reply