Skip to content

Instantly share code, notes, and snippets.

@pennyworth12345
Created June 5, 2016 06:31
Show Gist options
  • Save pennyworth12345/72995076fd107f2c82c3e6c57ee1ff70 to your computer and use it in GitHub Desktop.
Save pennyworth12345/72995076fd107f2c82c3e6c57ee1ff70 to your computer and use it in GitHub Desktop.
//+ icons on all named selections from resolution LODs
buildingSelections = addMissionEventHandler ["Draw3D", {
_obj = nearestBuilding player;
_selections = selectionNames _obj;
_selections apply {
_modelPos =_obj selectionPosition [_x, "FireGeometry"];
if!(_modelPos isEqualTo [0,0,0]) then {
drawIcon3D ["\a3\ui_f\data\gui\cfg\cursors\add_gs.paa", [0,0,0,1], _obj modelToWorldVisual _modelPos, 0.75, 0.75, 0, _x];
};
};
}];
//removed with
removeMissionEventHandler ["Draw3D", buildingSelections];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment