LUA command missing

Post bug reports and ask for game support here.

Moderator: MOD_Command

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

LUA command missing

Post by figabo »

Hello,

As trying to make a mission using LUA, i think there are some things missings :

* having the possibility to add a unit to a group (as you can do directly in the editor by using the G key)
(so you can assign a mission in LUA to the entire group)
* having the possibility to use formation editor in LUA
* having the possibility to attach a unit to its home port (for instance a plane to its CV)
* having the possibility to get the % damage of the unit

Another thing i am not sure :

how to unassign a mission to a unit in LUA ? do you use AssignUnitToMission to a new mission ?
If the unit as already started a mission, if you assign a unit to a new mission, did they return to
base and start the new mission ?


Dimitris
Posts: 14792
Joined: Sun Jul 31, 2005 10:29 am
Contact:

RE: LUA command missing

Post by Dimitris »

ORIGINAL: GaetVa
Hello,

As trying to make a mission using LUA, i think there are some things missings :

* having the possibility to add a unit to a group (as you can do directly in the editor by using the G key)
(so you can assign a mission in LUA to the entire group)
* having the possibility to use formation editor in LUA
* having the possibility to attach a unit to its home port (for instance a plane to its CV)
* having the possibility to get the % damage of the unit

Hello,

"Missing"? Did we promise these things somewhere? Did we say any of these things is available? Please cite.

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

RE: LUA command missing

Post by figabo »

Hello

It was not an attack [;)]

and i never said it was promised or something like that.

i used missing in a way that it can help a lot to create scenario by using LUA,
as for now, i can't really used in an escompted way
(for instance creating a plane assign to a carrier by using LUA in a script at
the begin of the scenario is not usefull as i can't attach it to an airbase)

Thanks !
mikmykWS
Posts: 7185
Joined: Tue Mar 22, 2005 4:34 pm

RE: LUA command missing

Post by mikmykWS »

Add it to an import. Use the lua add import script.
figabo
Posts: 58
Joined: Tue Nov 02, 2004 10:42 am

RE: LUA command missing

Post by figabo »

Problem i saw with import that if you put a proficiency, it seems it is not saved as when i import
units i created using the editor scenario, i have all units regulars even those i changed the proficiency.


PS : i don't understand how i can use lua add import script in what i would like to do...

for me it is the same than created the units directly in the scenario editor. The only difference
i saw is i use a lua script to import them from a inst file. But i don't see what i can do more
by using a lua script to import unit ?

mikmykWS
Posts: 7185
Joined: Tue Mar 22, 2005 4:34 pm

RE: LUA command missing

Post by mikmykWS »

Okay I've added a request to add a script that will modify a units proficiency as there could be other causes for this (loss of morale, nuclear war, Sopranos going off the air with no real mention of what happened to Tony).

Mike
Post Reply

Return to “Tech Support”