
MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Dec 31, 2010 07:53 AM
Msg. 1 of 7
Hey guys, this may sound a bit noobish, but how do you disable the ability to use a specified device control in script, and then enable the ability to use it again at another specified time, without it activating itself during the process? Thanks, -Moooseguy Edited by MoooseGuy on Dec 31, 2010 at 07:54 AM
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Dec 31, 2010 12:45 PM
Msg. 2 of 7
Perhaps destroy it and replace it with a fake one temporarily.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Dec 31, 2010 02:05 PM
Msg. 3 of 7
Doing that conflicts with another script I have.
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Dec 31, 2010 03:03 PM
Msg. 4 of 7
I had to do this for my map. Here is my script:
(script continuous fence_left (sleep_until (= (device_get_position control2) 1)) (device_set_power control2 0) (device_set_position fence1 1) (sleep 1500) (device_set_position fence1 0) (device_set_position control2 0) (device_set_power control2 1) )
If you cut the power to the control, you will not be able to use it.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Jan 1, 2011 08:20 AM
Msg. 5 of 7
Oh, thanks man!  I was using device_set_position for the controls. XD
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Jan 1, 2011 10:33 AM
Msg. 6 of 7
After all the help you've given me lately, I was glad to help.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Jan 1, 2011 12:51 PM
Msg. 7 of 7
I feel all warm and fuzzy inside now. 
|
|
|