Any knowledge of what 'taskArg' refers to in the below please?:
void setTask(maddox.game.world.AiAirGroupTask task, maddox.game.world.AiAirGroup taskArg)
Member of maddox.game.world.AiAirGroup
Ultimately though I'm still trying to figure out how to change the task of an airgroup and don't understand what 'taskArg' is in the above as I figure it is important. Any idea?
I'm also in my desperate experiments trying to (naively/dumbly) use the following to set the task of an AirGroup to 'return' by putting in the AirGroup id of 2 in the wild hope that it needs the airgroup there:
AiAirGroup.setTask(AiAirGroupTask.RETURN, 2);
but I get a compile error
error CS1503: Argument 2: cannot convert from 'int' to 'maddox.game.world.AiAirGroup'
(I get a cannot convert form string error if I send it a string.)
I can't quite figure out what needs to go in there, it is needing something other than a variable?
(I am trying to learn C# but funnily enough there's no examples in any of the sources I've looked at that use Il2 Clod code as examples.)
Bookmarks