assign mission/unassign mission

Share your best strategies and tactics with other players by posting them here.

Moderator: MOD_Command

Post Reply
figabo
Posts: 58
Joined: Tue Nov 02, 2004 10:42 am

assign mission/unassign mission

Post by figabo »

Hello,

I don't know if it is possible to do it in the editor. I tried without success, but perhaps it is possible ?

I would like for an aircraft group (home base aircraft carrier) to assign to a strike mission to a land base. But depending on a trigger (which detects an ennemy TF), i would like this group come back to its carrier, change weapons (bombs to torpedoes), and go for a strike mission against the TF.

I can create the two strikes missions without problems (land and TF) but i don't know how
* i can change the weapons of the aircraft
* make them return to the base before the new mission to the TF

if it is possible to change the weapons, is it however possible to :

* cancel the first mission
* make them return to the carrier
* launch them for the new mission depending of the trigger

?

PS : it is for the AI player...

Thanks !
User avatar
Gunner98
Posts: 5881
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: assign mission/unassign mission

Post by Gunner98 »

Not sure.  I think Lua script will allow you to change and canc missions.  Not sure if you can change the loadout though?
 
B
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
figabo
Posts: 58
Joined: Tue Nov 02, 2004 10:42 am

RE: assign mission/unassign mission

Post by figabo »

Hello Gunner,

Thanks will see if i can get it work like you said
(i don't see unassign lua script function but perhaps by putting empty string it unassign the mission ?)
figabo
Posts: 58
Joined: Tue Nov 02, 2004 10:42 am

RE: assign mission/unassign mission

Post by figabo »

not saw that there is something planned in the future which will do the job :

Event Action: Abort Mission/RTB
User avatar
Gunner98
Posts: 5881
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: assign mission/unassign mission

Post by Gunner98 »

OK,

I'm doing some testing for my latest scenario and decided to run a quick test on this. Essentialy Lua will already do what your asking for. Check out the attached file.

The Cesna is on a 'support' mission 'Circut'
There is a Lua scrip which puts that unit on a 'Ferry' mission
Trigger is at a time of 12:20

Noticed that if the unit was not already engaged on the original mission, the event would not fire. For instance when I first did it, the time trigger was too early and the Cesna had not yet started the first leg of the 'Circut' mission and the mission did not fire.

Hope this helps

B
Attachments
test.zip
(4.69 KiB) Downloaded 4 times
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
figabo
Posts: 58
Joined: Tue Nov 02, 2004 10:42 am

RE: assign mission/unassign mission

Post by figabo »

Hello Gunner !

thanks a lot for your tries.

i will look at this this evening !

Regards
Tomcat84
Posts: 1952
Joined: Wed Jul 10, 2013 5:13 pm

RE: assign mission/unassign mission

Post by Tomcat84 »

I think you should be able to use "none" as mission name to unassign.
My Scenarios and Tutorials for Command

(Scenarios focus on air-warfare :) )
figabo
Posts: 58
Joined: Tue Nov 02, 2004 10:42 am

RE: assign mission/unassign mission

Post by figabo »

Hello Tomcat,

i will try this too !

Is there a difference between assigning units to a mission in the editor (units from a group)
and assigning units by using LUA script ? or the comportement is the same ?



figabo
Posts: 58
Joined: Tue Nov 02, 2004 10:42 am

RE: assign mission/unassign mission

Post by figabo »

Just a question about assignUnitToMission

i created a carrier having several planes.

if there a way in lua to retrieve all planes that belong to this carrier ?
as a part putting it hardcoded for each plane (and the planes can have different names,
as i modified their name by adding their proficiency)


Post Reply

Return to “The War Room”