Problems with scripting -1 reply

Please wait...

SoniC

I'm too cool to Post

50 XP

5th January 2003

0 Uploads

3 Posts

0 Threads

#1 15 years ago

Hi! I have made a script_mover and in the front there is a hatch wich will open when the mover arrives at target. But if press the button before the hatch is 100% open, the hatch stops at position and the mover returns.. But if you DO press the button when the hatch is 100% open, the hatch closes and the mover goes back to start position as it should..

How can i make the button "unpushable" while the hatch is opening? I know I can use "delay" on the button, but I use two triggers..

I will show you what i mean with this zip file




Codey

Wolfy 0.2 Admin

50 XP

17th May 2002

0 Uploads

25 Posts

0 Threads

#2 15 years ago

Here is a link to the modified script, backup your existing one before putting it in your map folder.

http://wolfy.rtcwfiles.com/sonic_mover.script

The problem was that the transport mover wasn't waiting for the hatch to complete it's down movement after moving forward.

I've changed the file a little bit and documented why, but if you have any questions about it atall give me a holar.

:D Have fun Codey Wolfyv0.2




SoniC

I'm too cool to Post

50 XP

5th January 2003

0 Uploads

3 Posts

0 Threads

#3 15 years ago

Yeeey, it works, almost.. There is still a small problem: If you press the button while the hatch is moving down you have to wait about 10 secs before you can press it again and the mover can move backa again.. That oftens happens, not all the times, is it a bug or something wrong in the script?

If you can't fix it, I'm still very happy for what you've done this far. Thx man! :)




CWH_CWz

Slightly cooler than a n00b

50 XP

7th May 2002

0 Uploads

32 Posts

0 Threads

#4 15 years ago

Hey Sonic

Try making the "wait 2000" in the script to "wait 450". I tested it, and it work great for me.

Happy Mapping!




SoniC

I'm too cool to Post

50 XP

5th January 2003

0 Uploads

3 Posts

0 Threads

#5 15 years ago

Thx guys :dance: