Jump to content
Chris07

Grouped Commands

Recommended Posts

I want to create a command that tells a vehicle to park at a particular location. Instead of cluttering up my main command panel with 4 additional icons, I would much prefer to have the commands grouped under a single button, mush like the "get item" commands are:

Example:

I select a vehicle and the command buttons appear for the vehicle. One of the commands is a "sendToPost" command button. When I click that button, four more buttons appear and I am given the option to select either one of the four post locations or to return to the main command screen.

How do i set this up? Thanks for the help!

Note: this is for freeplay/multiplayer

Link to comment
Share on other sites

Not at my PC right now, but the method would involve removing all of the commands on the vehicle, adding the new ones, and reversing the process after running the new commands.

I started out with that method when I made a Radio script for people, but I ended up using a prototype replacement system using separate people with just the call commands and a command to "deactivate" the radio. That shortcut probably wouldn't work too easily here, and I'm unsure of how to adapt the method for this situation.

Link to comment
Share on other sites

So I would write a command that would remove all commands from the vehicle and add only the four commands I want along with a return button. If any of the buttons are clicked they execute their given command then add all of the commands back?

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...