View Single Post
  #3  
Old 08-09-2012, 01:29 PM
frantic69 frantic69 is offline
Approved Member
 
Join Date: Mar 2010
Posts: 17
Default

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
Reply With Quote