Hello Hc_wolf,
Thank for your help. In fact, in the GamePlay.gpGetAction() we must put the shortname of the unit. As far as I understand, the name can be entered directly thanks to the quote. Here is an example of what can be found on some script on internet :
action = GamePlay.gpGetAction("a9");
AiAction action = GamePlay.gpGetAction("0_Chief");
I read that we can find the shortname in the mission file. I found some information and tried them but nothing seems to work.
It is for that reason that I tried the AiAction action = GamePlay.gpGetAction(ActorName.Full(missionNumber, shortName)); method but it doesn't work in the ontickgame function.
Frantic
|