Home   Help Search Login Register  

Author Topic: Mobile Command Unit  (Read 1497 times)

0 Members and 1 Guest are viewing this topic.

Injecta

  • Guest
Mobile Command Unit
« on: 05 May 2004, 16:02:26 »
What I'm looking for is a script that will add a function to a light armoured unit (Probably a modified M2A1) that will give the option to "Get in as CP commander"

Once in this position, the CP commander is given a view of the map with the briefing replaced with command options that are linked to other units in the game such as "Air strike" that will relay a target to anyone that happens to be in a fixed-wing at the time or "Artillary strike" that will show up for anyone with a mortar, "CAS" for choppers and so on...

I would also like it to work in a CTI or recource based mission where the commander must be in the vehicle before he can order resupply (I was looking at using cargo planes and choppers for resupply instead of factories, that way the wait time is realistic and the enemy has a chance to intercept) and it gives him greater control over his resources.

The other aim is to give the commander greater control of his troops by allowing to see all of his troops location on the map with thier tags(Like in Cadet Mode) and key in way points for units in real time.

It's really 3 ideas rolled into one and each adds an amount of funtionallity to the game but I think combining them to give the Commander real control in large scale battles will make the game that much more real.

Any pre-written script would be good but if anyone has anything close that I can tweek, that would be unreal as well.

Cheers

Injecta

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Mobile Command Unit
« Reply #1 on: 05 May 2004, 17:16:42 »
1)

can be done by adding a custom action to the vehicle

vehicle addAction ["Get in as CP commander","scriptname.sqs"]

Then in this script you would set a boolean to true + move the
guy who has triggered the action (_this select 1) into the
normal commander position.

The extra options you could enable if the boolean is true,
and if the boolean is false you wouldn't enable the extra options.

2) The condition to to check wether he's in a vehicle or not
could look like that:

vehicle unitname == vehiclename   ...(in a trigger's condition field)

or in a script:

?(vehicle unitname == vehiclename): whatever you want

The reinforces stuff i wouldn't want to explain at the mo, as
i don't know what you're already know about how to do it,
and in case you know nothing i would say: go for editing tute's
first - try/try/try - and come back with specific questions.

If you already got specific questions about it then feel free to
ask, but don't ask like above as it sounds like you need somebody to make the whole thing for you  ;)

3) There's already the CoC command engine, and then there
are also some multigroup control scripts available at the editors
depot. Further i'm also still working on my MOTAG (MOre Than A Group) where i'm using dialogue menu's to give the player control over whatever group needs to be controlled.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Injecta

  • Guest
Re:Mobile Command Unit
« Reply #2 on: 06 May 2004, 01:40:35 »
Thanks Mate,

That's exactly what I needed. A start point!

Mobile Command Vehicle is now "A work in progress"

Thanks for you help

Offline WizzyWig

  • Members
  • *
  • Mod Maker
    • Oblivion Promotions
Re:Mobile Command Unit
« Reply #3 on: 06 May 2004, 02:58:59 »
also as an idear maybe use a diolog for the action of a map and stuff

Injecta

  • Guest
Re:Mobile Command Unit
« Reply #4 on: 06 May 2004, 05:08:46 »
Exellent!

Chris,

Your finite instruction and clear thought direction have made this not only more productive but a whole lot more fun.

I've finished Moding the M2A1 by removing the turret and replacing it with a command dome (Static turret minus gun, plus HF and UHF antenne) and I can now get in as the "CP COMMANDER" ( I also removed the "Get in as Gunner" and "Get in Back" commands)

I've looked through a lot of the tuts and Command references but I can't seem to find a command that will take you directly to the Map screen. You don't know where any Tuts could be found that cover the map screen? ???

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Mobile Command Unit
« Reply #5 on: 06 May 2004, 11:44:18 »
Well, there's that forceMap true / false command, but
i believe it won't be much of a help for you, as all it does
is: it shows the map, but you can't interact with the map.
It's just forcing the map screen infront of your view, but the
coursor still remains as if you were ingame and not on the
normal map screen. You can even shoot your rifle at the
forced map screen.

The only work-around in that case is to give the player a hint
message (or whateva kind of text-display you want) and tell
him to press 'M' for the map.

Alot of ppl (inluding me) would have expected such a feature
being implemented.

:edit - btw the command can be found in the official comref

~S~ CD
« Last Edit: 06 May 2004, 11:45:18 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted