Disable!?!?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
chrisjbooth2001
Colour Sergeant
Posts: 77
Joined: Thu Dec 18, 2003 12:57 am

Disable!?!?

Post by chrisjbooth2001 »

How can i disable a thread when something happens like a door opens.. The door is operated by a switch...
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmm you need to improve your understand of scripting a bit :wink:

A thread is not something you can disable.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

loop

Post by tltrude »

You can stop a while loop with the command "break".
Tom Trude,

Image
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post by kai0ty »

um, well do u mean when the door is open a thread will stop running??? if so u can just put the thread in an if statement and have the switch both open the door and negate the if. i cant show u because my enter key wont work, but someone can.
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
Post Reply