Home   Help Search Login Register  

Author Topic: Join by request.  (Read 926 times)

0 Members and 1 Guest are viewing this topic.

sTSharpy

  • Guest
Join by request.
« on: 17 Jun 2006, 03:50:43 »
well, finally i made it to this forums. A big hi 2 everyone .
Ok. I had a few ideas , but i will write them down one at the time :).

Ok, did it happend to you, that while playing around in the Mission Editor (and making your basic little missions) you made your carracter as a  commandin officer, with a few soldiers under your command. You made a few airunits(not under your command) a few armoured units (not under you command), so on so on. Well , you started playing, and suddenlly you found yourself alone, your soldiers are dead, and there is no way to complete the mission(unless you use 99 LeftShift+Numped Minus SAVEGAME command ;D). Meanwhile the airunits been shot down, and one of the armoured units is disabled as well, but the crew is still around!! Can a script be done, which would force the surviving crews go look for the highest ranking officer on battlefield,(in this case You) and when they near you, a choice would come up from a menu board, wether you want them to join you or not. So it would be a kind a resupply. I know you can resupply your squad with respawn and other ways, but this way its just adds a bit more realism to the game.

Well I think i put my 2 cents too the table ;), it would be interesting to see other peeps views on this matter.

Regards, [sT]-Sharp-GC-SWAT

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re: Join by request.
« Reply #1 on: 29 Jun 2006, 07:01:06 »
I think it would be possible, when units are given positions in vehicles they are given names (I think) which go somthing like this:

VehiclenameD (for driver) VehiclenameG (for gunner) and VehiclenameC (for Commander)

or you could just assign some crew units you named yourselves to the Vehicle

 then when the vehicle is dammaged and the crew get out you can use a script using the join command and the surviving men will become part of your squad and will run to your side (hopefully)
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re: Join by request.
« Reply #2 on: 30 Jun 2006, 19:47:02 »
The problem would be sending them to the guy with the highest rank, since there is no getrank command

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: Join by request.
« Reply #3 on: 30 Jun 2006, 22:04:12 »
well, since this regrouping should be done once players group has reached size 1, it would be enough to send them to the player.

You should let the script wait until players group has reached size 1

Code: [Select]
@ (count group player) == 1

somewhat like this.

besides this, it should be checked if the sum of both groups wouldn't exceed 12 men.


Imo such a scripting should firstly check if the AI tank group has some vehicles left and fill up empty positions inside the tanks. Once all tanks are inoperational (canmove false) the whole group should move towards players position. Not directly close to him, but close enough to ensure a fast joining process.

Once the player has lost his whole group, the former tank group should offer to join the player and ask for a rendez-vous point (onmapsingleclick).

I'm still working on the flow of such a script and got some ideas in mind. If i'm ever capable to write such a thing (and tested it out) i'll making it available to everyone.