
Hell_Jumper_056
Joined: Jan 7, 2010
Halo: Accession
|
Posted: Nov 16, 2012 01:29 AM
Msg. 1 of 7
Hi again lol. Im trying to make a door that is player activated when a player walks up to a piece on a wall, presses e, and the door will open, but will only close when the player presses e again. I have made an animated scenery piece that moves just fine, but you cant control scenery. so i changed it to a device control. when i walk up to it, it says "press e to (enter string here)" which is good, so i know that im on the right track, but now i can walk through it. I dont know why. I know that scripting might be involved to get it to move, so i've downloaded some programs to help with that, but I know nothing of code. i've looked for tutorials, but none of them seem to help. any ideas?
|
|
|

Hobbet360
Joined: Jan 10, 2012
ProTools > ToolPro
|
Posted: Nov 16, 2012 01:51 AM
Msg. 2 of 7
Ok, there is a way to do it without scripts... But since I learnt how to script I have forgotten the basic ways. But any whom with scripting Kirby has a great tutorial on his scripting thread (link bellow) but once you learn how to compile scripts with that tutorial here's how itz done. In sapien... 1:) make a device group in sapien named "door" or whatever. 2:) make a control device and place it somewhere. 3:) do the same with yarr door. Name the door "door". 4:) in the properties of the control device, go down to position groups (I think that's what it's called) and drop the box down and select "door" (the name of the group you made before) Once that's all good, open notepad and copy and paste the following... (Script continuous door_open_close (Sleep_until (= (device_group_get_position) 1) 1) (Device_set_power door 1) (Sleep_until (= (device_group_get_position) 0) 1) (Device_set_power door 0) ) (That script might not work (I'm on mah iPad) ill make a better one once I'm on mah pc) Save it as a .hsc in data/levels/<whereyourscenariois>/scripts Go into sapien and do ctrl + shift + C. Done. Tutorial http://forum.halomaps.org/index.cfm%3Fpage=topic&topicID=41490&start=1Edited by hobbet360 on Nov 16, 2012 at 01:52 AM
|
|
|

Hell_Jumper_056
Joined: Jan 7, 2010
Halo: Accession
|
Posted: Nov 21, 2012 02:06 AM
Msg. 3 of 7
would anyone know how to get this done without using code? lol, i can't even begin to understand code. i know that there are about 3-4 device types, but i dont know which one i should use or how to set it up.
|
|
|

HaloExtreme117
Joined: May 5, 2012
~Gone~
|
Posted: Nov 21, 2012 06:47 PM
Msg. 4 of 7
Quote: --- Original message by: Hell_Jumper_056 would anyone know how to get this done without using code? lol, i can't even begin to understand code. i know that there are about 3-4 device types, but i dont know which one i should use or how to set it up. Code? It's only a basic script, that's nothing. *sigh* Just follow kirby's tuts on it, and you'll be fine. This is gonna be a real pain in the ass to do without at least a simple script. Edited by haloextreme117 on Nov 21, 2012 at 06:47 PM
|
|
|

Hell_Jumper_056
Joined: Jan 7, 2010
Halo: Accession
|
Posted: Dec 6, 2012 12:36 PM
Msg. 5 of 7
I just finally got back around to working on this, and i was wondering if the 0's and 1's were relative to the positions in 3ds max? I've downloaded kirbys tuts but none were relative to what im working on, but his tuts did teach me how to get them implemented. i followed all of the steps, but im confused by step 3, since i dont understand what im doing at this point. my door (door_1 = name) has the door control in the same file. whichs makes sense to me, or are there supposed to be 1 small door controller box device control file and 1 door itself device conttrol file? and i can't shoot through the door, but i can walk through it still lol, idk why.
|
|
|

Masters1337
Joined: Mar 5, 2006
halonaminator's unfortunate idol
|
Posted: Dec 8, 2012 02:39 AM
Msg. 6 of 7
You all mostly suck (except for you hobbit) at helping this dude.
There isn't a need for scripts at all in this. If you take a look at the b40.scenaro, you can see how the elevators work. Like your door, they will only activate when the control panel is presses. It should be fairly simple to replicate looking at that map. You will of course need to copy and modify the device machine, since you want to use your door, and not the elevators.
|
|
|

Hell_Jumper_056
Joined: Jan 7, 2010
Halo: Accession
|
Posted: Apr 29, 2013 06:38 PM
Msg. 7 of 7
Hmm. I know this is a while back lol but im still stuck. I looked at the map to understand how everything worked and I actually got it to half work. I can press e to close the door and it actually closes. But I can't get the second control panel to open it. Anyone know how to fix this? thanks!
|
|
|
| |
|
|
 |
|