Jump to content
Guest pappy02us

How to create a manual gate

Recommended Posts

Guest pappy02us

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest pappy02us

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest pappy02us

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...