Created
June 5, 2016 06:31
-
-
Save pennyworth12345/72995076fd107f2c82c3e6c57ee1ff70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//+ 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