Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Sign in to follow this  
e34p

Gates

Recommended Posts

Hi all,

 

I'm trying to edit the LA mod Fire Station script so that I can control individual gates manually from the control panel.

 

Is it possible to create a separate script just for the station gates that I can assign to the control panel?

My aim is to have the control panel have an number of commands assigned to it that open/close the gates independently.

Share this post


Link to post
Share on other sites

I have a different method in mind for your idea.

I would assign an "open gate" command to every vehicle in the station. Pressing that command will open/close the gate for that specific vehicle.

Share this post


Link to post
Share on other sites

Thanks!

 

Although I'm just looking for a really simple script.

One that is assigned to the control panel (or any other vehicle) that makes the gate do the open and close animation. It doesn't need to create a barricade when it is closed or anything, its purely just for controlling the animation.

Is this possible?

Share this post


Link to post
Share on other sites

Yes, do the above, except remove the lines relating to the virtual object. If this is purely visual, then you can just set it up as the above. Doesnt even need the sound line either.

As long as you have it set up that the specific gate is linked to a specific vehicle, it should work.

Share this post


Link to post
Share on other sites

Ok great, but how do I put this into a new script that doesnt use the LA mod one?

Share this post


Link to post
Share on other sites

Do you know how to script, or at the very least, make a new one? All you need is to copy paste an existing script, and clear out all the content in the checkPossible, checkTarget and PushActions sections. Just dont delete the headings.

I'll send over the partial code for this logic. Hopefully you can figure this out.

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...