Adding Intel to a unit

  1. ‹ Older
  2. 7 years ago
    Edited 7 years ago by HeroesandvillainsOS

    Ah ok. Bummer. Do you know how I can I add Intel to an object (I'm thinking something like adding it to a "secret document")?

    EDIT: Wait. I'm assuming what you said was a typo. I'd replace "_object" with "this" for adding Intel to a physical object, correct? That would make sense.

    You said "init line of a unit" but I'm pretty sure you meant "init line of an object." Am I right on that?

  3. yes, sorry.

    One minor change you need you make if using an object is replace side _obj with the side of the asymmetric opcom.

    ex.

    side _obj --> "EAST"
    side _obj --> "WEST"
    side _obj --> "GUER"

  4. Thanks!

  5. So this is what I added to the init line of an object but I think I got the syntax is wrong:

    this addAction ["Read Intel", {_params = _this select 3; openmap true; [_params select 0, 1500, _params select 1] call ALiVE_fnc_OPCOMToggleInstallations}, [getPos _obj, "EAST"], 1, false, true, "", "alive _target"];

    The error is "Local variable in global space"

  6. Edited 7 years ago by SpyderBlack723
    getPos _obj

    |
    |
    v

    getPos this
  7. Edited 7 years ago by HeroesandvillainsOS

    Lol. It's like I don't even read what you write. :(

    Sorry. You made that pretty clear earlier. I appreciate the clarification.

  8. Edited 7 years ago by HeroesandvillainsOS
    this addAction ["Read Intel", {_params = _this select 3; openmap true; [_params select 0, 1500, _params select 1] call ALiVE_fnc_OPCOMToggleInstallations}, [getPos this, "EAST"], 1, false, true, "", "alive _target"];

    Ok. Cool. Well 50/50 cool. This code is accepted as valid in the editor. However, interacting with an item having this in its init in game results in a toggle installations generic error in expression message. And no intel is revealed.This would actually be the same error I had when the intel on dead bodies feature was first introduced into ALiVE itself..

    Not that it matters much. BIS has hard-coded this obnoxious "Take Intel" add-action on intel documents that shows up much further in the mousewheel options than ALiVE's "Read Intel" option. Why on earth would BIS have an interaction like this when it doesn't do anything unless you script it to?

    I honestly have no clue how you guys were able to bypass the generic "Take Intel" add-action. Don't you use intel documents near the dead bodies, similar to the ones I would find in the editor?

  9. ["Land_File1_F","Land_FilePhotos_F","Land_File2_F","Land_File_research_F"]

  10. Edited 7 years ago by HeroesandvillainsOS

    Thanks.

    Any idea why it the code I'm using doesn't reveal installations and just shoots a toggle installations generic error in expression message?

    That couldn't be tied to which objects I was using, could it?

  11. Could you post Rpt, probably something simple I messed up

  12. https://www.dropbox.com/s/fk1zux5b6zr967k/arma3_2016-06-25_21-21-30.rpt?dl=0

    Sorry, the rpt file was just barely too long for a paste. Let me know if you need the error I see in game.

  13. Edited 7 years ago by SpyderBlack723

    Ah, tricky HH

    Just change

    [getPos this, "EAST"]

    to

    [getPos this, EAST]
  14. Edited 7 years ago by HeroesandvillainsOS

    Thanks!

 

or Sign Up to reply!