
Dark Ninja
Joined: May 26, 2008
The internet shows how stupid people are.
|
Posted: Jun 24, 2008 12:24 AM
Msg. 1 of 4
Like computer controls. Like press a switch to open door, lower shields, etc. How do I make it? I've looked at campaign scenarios in guerrila, and there's device-machines and controls, and they have a power group and position group.
|

DarkZealot
Joined: Jan 1, 2008
Time management: 40% Xbox, 30% PC, 30% Skating
|
Posted: Jun 24, 2008 10:31 AM
Msg. 3 of 4
Have no ph33r, DarkZealot is here! Nice intro, I know. You don't need scripting. First, open the scenario of choice, in my case, I'll be using Bloodgulch. Second, go to the device controls folder and add levels\b40\devices\holo control\holo control.device_machine_control. Second, add a device group, call it position, give it a value of 0. Now, add a door of your choice to the device machines folder. I'll be using a10\devices\doors\door small.
Place your door. Set the position group to the position group you just created. Check "Does not operate automatically". Then, place your control somewhere in the level, assigning that position group to the control. Also, make sure "can only change once" is checked for the control.
Now you can build your level. Compile it (make sure to save it as bloodgulch_mod or something), and press the switch, your door is now open! I will also discuss how to make it say "Press E to open the door". Download the String List Editor. Open it, and add this text to the first line: "open the door". Save it as a unicode_string_list in your bloodgulch folder. Then, in Sapien, reference it by selecting Mission and in the properties view adding it to "custom_object_names". Then in your device control, in the dropdown box at the way bottom, select your string. Now compile, and viola! Working door with help text. Oh and, this method DOES NOT SYNC!
Ow, that was a long post.
|

Dark Ninja
Joined: May 26, 2008
The internet shows how stupid people are.
|
Posted: Jun 24, 2008 10:59 AM
Msg. 4 of 4
Thanks. I'll be using it for a single-player level. I might upload it here.
|