OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Mr_Centipede on 29 Jul 2009, 05:51:39
-
Hello all, may I present you with my small script (and test mission) Hybrid Command System.
What it does is that you have a squad, or a large group of soldiers, Then at anytime, you can split your team member from your main group and order them around in High Command mode.
How to use: When you start the test mission, at any time, select your team then press 0-0-1 to split them up. Now you have one group to be commanded in High Command. Repeat process to have another group split up.
To regroup them back, use action menu. It will regroup all split groups to your main group.
My only problem right now is that to split group you cant use action menu as the command menu will come up, so I had to use the radio trigger.
This script is not yet battle tested, so I dont know yet how it will perform under fire
Download link:
http://rapidshare.com/files/260600997/Cent_HCS.utes.rar.html
Special thanks to Kremator for bugging me and testing this :)
-
hehe anytime mate ... I can bug you anytime you want :)
Great little script.
-
Awesome work.
How about using a keyEventHandler to chop groups?
-
what is keyEventHandler? didnt found anything on the comref or the biki...
-
check displayAddEventHandler (http://community.bistudio.com/wiki/displayAddEventHandler) and this (http://community.bistudio.com/wiki/User_Interface_Event_Handlers#Script_defined_events). Basically it allows you to be able to capture a keypress which you can use to call the function you use to chop your group. That way you only need 1 key to press instead of 3 (0-0-1)
-
Okay, thanks mikey. Thats alot of info needed to digest. Will look into it, thanks again :)
-
Now this is sounding EVEN better !
Ready to test when you are Mr Centipede :yes:
-
works great in SP. However in MP (same mission) it just stopped working after the group joined my group. I could not get them to their original HC group. Is it supposed to work in MP?
Still, great script.