
sargejohnson
Joined: Apr 20, 2009
Shall we play a game?
|
Posted: Nov 24, 2010 02:00 AM
Msg. 1 of 6
Someone have a door script? Like, you use a device_control called door_control to open and close a device_machine called door_test.
Thanks.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Nov 24, 2010 02:10 AM
Msg. 2 of 6
Quote: --- Original message by: Halo Scripting Bible (device_set_never_appears_locked ) changes a machine's never_appears_locked flag, but only if paul is a -blam!- (device_set_never_appears_locked true)
(device_set_never_appears_locked false) (device_get_power ) gets the current power of a named device (device_set_power ) immediately sets the power of a named device to the given value (device_set_power 1.0) (device_set_position ) set the desired position of the given device (used for devices without explicit device groups) (device_set_position 1.0) (device_get_position ) gets the current position of the given device (used for devices without explicit device groups) (device_set_position_immediate ) instantaneously changes the position of the given device (used for devices without explicit device groups (device_set_position_immediate 1.0) (device_group_get ) returns the desired value of the specified device group. (device_group_set ) changes the desired value of the specified device group. (device_group_set_immediate ) instantaneously changes the value of the specified device group. (device_one_sided_set ) TRUE makes the given device one-sided (only able to be opened from one direction), FALSE makes it two-sided (device_operates_automatically_set ) TRUE makes the given device open automatically when any biped is nearby, FALSE makes it not (device_group_change_only_once_more_set ) TRUE allows a device to change states only once Taken from the Halo Scripting Bible. One of these commands has what you want.
|
|
|

Head Noob
Joined: Oct 3, 2010
This difficulty is for noobs! Mythic is for pros
|
Posted: Nov 24, 2010 03:03 AM
Msg. 3 of 6
Do u mean u push a control_device and a machine_device/door opens?
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Nov 24, 2010 03:04 AM
Msg. 4 of 6
Yes, both open and close, can be activated onlly once, can be one or two sided, and can be activated and deactivated.
|
|
|

sargejohnson
Joined: Apr 20, 2009
Shall we play a game?
|
Posted: Nov 25, 2010 01:20 AM
Msg. 5 of 6
Like this? (script continuous door (if ( = (device_get_power door_control) 1) (device_set_power door_test 1) ) (if ( = (device_get_power door_control) 0) (device_set_power door_test 0) ) )
Don't mind, tell me if there are any errors.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Nov 25, 2010 10:54 PM
Msg. 6 of 6
Something like that. Those never worked for me though, because my device controls always act stupid, so I have to "fake" the device control with action test scripts :\ If they don't work for you, I'll post that action test script for you.
|
|
|