Adding a custom objective via script throws an error

  1. 8 years ago

    I'm not sure what we are supposed to report issues, so I'll report it here.

    Adding a custom objective via script throws an error when debugging is enabled for the Military AI Commander modules. The commanders do pickup the objectives properly.

    Error in expression <rkerColorLocal "ColorYellow";
    
    
    switch (_side) do {
    
    
    };
    
    };
    
    _objectives = [_lo>
    21:52:05   Error position: <_side) do {
    
    
    };
    
    };
    
    _objectives = [_lo>
    21:52:05   Error Undefined variable in expression: _side
    21:52:05 File x\alive\addons\mil_opcom\fnc_OPCOM.sqf, line 1849
  2. Can you share the code you are using to create the objective.

  3. It's the snippet from the wiki. http://alivemod.com/wiki/index.php/Script_Snippets#Add_a_Custom_OPCOM_Objective

  4. Do the commanders still send troops to that location? (I know it creates the marker but whether or not troops are sent is the key).

    If so, harmless error, no code even runs in the switch statement that errors out. Will fix.

  5. Yeah everything seems to work fine.

  6. Gracias, fixed.

 

or Sign Up to reply!