Task completion rewards?

  1. 8 months ago

    Can I place the C2ISTAR and have it autogenerate tasks for the AI faction and player faction. Then when players complete a task, supplies or equipment would be dropped? I dont want to spawn AI for the player faction. I just want them to be rewarded with something other than Logistics points.

  2. As far as I can tell there's no way to do that. You're probably better off creating your own tasks if you want to do that.

  3. Edited 8 months ago by marceldev89

    We had a look and it is possible to do this. The code below should get you started:

    KRD_fnc_taskSucceeded = {
        params ["_logic", "_operation", "_args"];
    
        switch (_operation) do {
            case "handleEvent": {
                // do your reward stuff here
                // task data is in _args
            };
        };
    };
    
    private _listener = [nil, "create"] call ALIVE_fnc_baseClass;
    _listener setVariable ["class", KRD_fnc_taskSucceeded];
    
    private _listenerID = [ALIVE_eventLog, "addListener", [_listener, ["TASK_SUCCEEDED"]]] call ALIVE_fnc_eventLog;
  4. Tupolov

    5 Sep 2017 Administrator

    Also see other listener examples here

    http://alivemod.com/forum/2584-using-objective-capture-status-for-triggering-events/p1#p17932

  5. how would I tell ALiVE logistics to deliver supplies or vehicles to the location of the task? Especially via paradrop.

 

or Sign Up to reply!