Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic comment function to all code modules requiring an inhibitor #168

Open
JamesTheClarke opened this issue Mar 18, 2021 · 0 comments
Labels
Default Modules (Coop) Issues regarding the default coop mission modules Default Modules (PvP) Issues regarding the default pvp mission modules Enhancement Changes to existing features not based on mod updates

Comments

@JamesTheClarke
Copy link
Contributor

If you want to leave a comment in place of the "Execute Code (Eden)" module instead of a static comment that's always present (and may be more easily missed), put this at the bottom of the executed code:

params ["_module"];
do3DENAction "CreateComment"; 
private _comments = all3DENEntities select 7; 
private _3den_id = _comments select (count _comments - 1);
set3DENAttributes [ 
    [[_3den_id], "Name", "Something was here"], 
    [[_3den_id], "Description", format ["It was deleted when you placed it. Fix it.%1%1See wiki link TODO here.", toString[10]]], 
    [[_3den_id], "position", getPosASL _module]
]; 

(Adjust Name to be the subject and Description to be the description, %1 representing a line break (new line.))

Then try it out on some hilly terrain (I for got to try that). If it creates the comment high in the sky, change getPosASL to getPosATL and that should fix it.

Originally posted by @freghar in #166 (comment)

@JamesTheClarke JamesTheClarke added Default Modules (Coop) Issues regarding the default coop mission modules Default Modules (PvP) Issues regarding the default pvp mission modules Standard Faction OPFOR For issues regarding the OPFOR standard faction composition Standard Faction BLUFOR For issues regarding the BLUFOR standard faction composition Standard Faction INDFOR For issues regarding the INDFOR standard faction composition Enhancement Changes to existing features not based on mod updates labels Mar 18, 2021
@JamesTheClarke JamesTheClarke self-assigned this Mar 28, 2021
@JamesTheClarke JamesTheClarke added this to the v2.1.0 milestone Mar 28, 2021
@JamesTheClarke JamesTheClarke removed Standard Faction BLUFOR For issues regarding the BLUFOR standard faction composition Standard Faction INDFOR For issues regarding the INDFOR standard faction composition Standard Faction OPFOR For issues regarding the OPFOR standard faction composition labels Mar 28, 2021
@JamesTheClarke JamesTheClarke removed this from the v3.0.0 milestone May 30, 2021
@JamesTheClarke JamesTheClarke removed their assignment Jun 7, 2021
@JamesTheClarke JamesTheClarke added this to the v3.0.4 milestone Jan 10, 2022
@JamesTheClarke JamesTheClarke modified the milestones: v3.0.4, v3.1.0 Jul 17, 2022
@JamesTheClarke JamesTheClarke self-assigned this Jul 17, 2022
@JamesTheClarke JamesTheClarke removed this from the v3.1.0 milestone Jul 17, 2022
@JamesTheClarke JamesTheClarke removed their assignment Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Default Modules (Coop) Issues regarding the default coop mission modules Default Modules (PvP) Issues regarding the default pvp mission modules Enhancement Changes to existing features not based on mod updates
Projects
None yet
Development

No branches or pull requests

1 participant