Guest pappy02us Posted September 23, 2009 Report Share Posted September 23, 2009 How to you add an manually opening and closing gate to the freeplay map? I saw the other gate creation topic but I don't think triggers will work for what I want to do.Basically I am trying to create a parking area for special police units in the LA MOD. I am using Wood's first freeplay map. I tried to make a script that would make them park automatically but it somehow disabled the to fire station script. So what I did was used barriers to create stalls for each unit. The units will park in the stalls by blocking the exits to the lot. So that's why I need a gate that can be opened and closed.Any help is appreciated.Edit: I have been playing around with the gates in the editor and found flaw in my plan they are not solid. the units just drive right through as if they weren't there. So now the question is how do I make them solid? Quote Link to comment Share on other sites More sharing options...
pyrothijs Posted September 24, 2009 Report Share Posted September 24, 2009 How to you add an manually opening and closing gate to the freeplay map? I saw the other gate creation topic but I don't think triggers will work for what I want to do.Basically I am trying to create a parking area for special police units in the LA MOD. I am using Wood's first freeplay map. I tried to make a script that would make them park automatically but it somehow disabled the to fire station script. So what I did was used barriers to create stalls for each unit. The units will park in the stalls by blocking the exits to the lot. So that's why I need a gate that can be opened and closed.Any help is appreciated.Edit: I have been playing around with the gates in the editor and found flaw in my plan they are not solid. the units just drive right through as if they weren't there. So now the question is how do I make them solid?To make the objects solid you need to place a virtual object marked as 'no vehicles' (or 'no dirving through' or something just check the options at the virtual objects, you can't miss it). Next you need to make script that 1: opens the gate when you press a button (the buttons can be found under objects, make sure you check the useable box at traits)2: will remove the virtual object once the gate is opened and will add the virtual object once the gate is closed. You can basicly use any gate script and modify it, but I recommend the one from the EM3 LA MOD used for the police station gates. Quote Link to comment Share on other sites More sharing options...
Guest pappy02us Posted September 24, 2009 Report Share Posted September 24, 2009 Ok thanks,I recommend the one from the EM3 LA MOD used for the police station gates.I don't have EM3, so could someone please send me that script, or tell me how to extract it from the mod download? Quote Link to comment Share on other sites More sharing options...
pyrothijs Posted September 24, 2009 Report Share Posted September 24, 2009 I don't have EM3, so could someone please send me that script, or tell me how to extract it from the mod download?Here you go, don't forget to change the extension to .script. Also make sure the objects and virtual objects needed have the same name as they do in the script. ToggleGate.txt Quote Link to comment Share on other sites More sharing options...
Guest pappy02us Posted September 24, 2009 Report Share Posted September 24, 2009 Thanks for the script.I need a little more help.This is what I did.I renamed the file to .script and placed it in the scripts/game/command folder for the mod.In the editor I placed object/fence/barrier20 and called it togglegate_gate.Then I placed object/street/switchbox01, made it useable, called it togglegate_switch and gave it the togglegate command.Then I place a VO over the gate, called togglegate_vo, and made it a barrier.Then I gave the use command to the appropriate personnel.In the game nothing works the switch is useable as the personnel walk up to it a appear to push the button. But that's about it.Am I missing something. Like what the dummy togglegate command for? Quote Link to comment Share on other sites More sharing options...