
Co1t3r
Joined: Dec 13, 2008
|
Posted: Feb 15, 2010 08:19 PM
Msg. 1 of 7
-I have a device named red_door_1. Its type is prison_door; the device from a50. -I have a control named door_control of the type holo control. -When holo control is activated, I want the doors to turn off, like they do in a50.
Halp?
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: Feb 15, 2010 11:36 PM
Msg. 2 of 7
Power groups or scripts.
|
|
|

Co1t3r
Joined: Dec 13, 2008
|
Posted: Feb 16, 2010 06:36 PM
Msg. 3 of 7
How would I do so with a script?
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: Feb 16, 2010 07:03 PM
Msg. 4 of 7
device_set_position
Should be fairly simple, but I was hopping for Gamma to post a better response.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Feb 16, 2010 07:14 PM
Msg. 5 of 7
Isn't there a single day I can go without doing work? (sleep_until (= (device_get_position [DEVICE CONTROL]) 1.0) 15) (device_set_position [DEVICE MACHINE] 1.0)
Something similar to this, if my memory serves me correctly. Power groups would be much more efficient, as if you were to hit the control, the position between both the control and the machine would be set to 1.0. To create a new power group, in Sapien, under mission > objects > devices > device groups, create a new instance. Give it a name, and an initial state (0.0 for off). You might also want to check "can only change once." Then, in the device machine and control, under power group, choose your new device group. If you want the door to be set open, you would also put it under position group (this is for devices that won't open if you go near, like the a50 prison doors).
|
|
|

DarkZealot
Joined: Jan 1, 2008
Time management: 40% Xbox, 30% PC, 30% Skating
|
Posted: Feb 16, 2010 08:48 PM
Msg. 6 of 7
A50 prison doors have a permutation that is used to display if they are open or not. Check the a50 script from the Zteam Campaign Script release, or find the permutation in the gbxmodel in Guerilla and then use
object_set_permutation [Door] ["Region"] ["Permutation"]
to control it's status. Use Gamma's sleep statement above but instead of position use what I gave you.
|
|
|

Co1t3r
Joined: Dec 13, 2008
|
Posted: Feb 16, 2010 09:08 PM
Msg. 7 of 7
I switched to some other door from a50 where I actually have to set the power. Got it to work, though. Thanks again.
|
|
|