Home   Help Search Login Register  

Author Topic: Player changes group by action menu item  (Read 2037 times)

0 Members and 1 Guest are viewing this topic.

Offline iceman316

  • Members
  • *
Player changes group by action menu item
« on: 19 Jun 2008, 02:58:14 »
Me and my friend are working on a small side project where he is building his own army of addons, and im building my own army of addons.  For our combat system we basicly want to be able to switch between groups of AI soldiers.  All we want to be able to do is open up the action menu select a group of our AI soldiers. Say we had three groups (group one, group two, group three) and when we selected the group we would be changed to that groups leader.  It sounds easy but ive been wrecking my brain trying to figure out a method for this.  We aren't looking for anything fancy like dynamic control by map just click group 1 in the action menu and you become its leader.  I found one script thats close to what i need but it only allows two players to play at a time and we could have 6 or more players at a time.  Can anyone point me in the right direction or send me a code snippit?  I understand the very basics of scripting and coding so anything will help.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Player changes group by action menu item
« Reply #1 on: 19 Jun 2008, 21:11:37 »
Did you search search search and search again?  :no:

This script in our ED should point you in the right direction.  The join command is supposed to work in MP.
You might also want to google "chain of command" and download their command engine.
edit : get your CoC here. http://www.main.thechainofcommand.net/
« Last Edit: 19 Jun 2008, 21:18:18 by Mr.Peanut »
urp!

Offline iceman316

  • Members
  • *
Re: Player changes group by action menu item
« Reply #2 on: 21 Jun 2008, 20:04:54 »
awesome i think thats what im looking for, i searched quite a few times and didn't run across that one.  I tried chain of command and it would be perfect for what i need, but it appears to only work in single player.  eventually when we have almost a compleate army we are going to make an entire MFCTI or RTS conversion, but neather of us know how to script our units into eather at the moment, but we are working on figuring it out.
« Last Edit: 21 Jun 2008, 20:10:40 by iceman316 »

Offline iceman316

  • Members
  • *
Re: Player changes group by action menu item
« Reply #3 on: 21 Jun 2008, 20:52:51 »
Upon some testing that script isn't what i need,  I didn't realise it was one i had already tried. I only lets you change the leader of a group you are already a part of (exa. if you wanted to change control over to your groups MG).  It wont let you change the leader to a soldier outside of a group.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Player changes group by action menu item
« Reply #4 on: 22 Jun 2008, 17:57:02 »
Check out THobson's Join script. A combination of this and the BecomeLeader may be what you want. I didn't realise CoC CE was only for SP.

Anyhow, this is what you need to do. Take all the soldiers in the group to which you want to be leader and use the join command to join them to you. If you were previously commanding another group, first take those soldiers and join them back to their old group. Let me know if this helps or if you need more specific advice.
urp!