Skip to content

Instantly share code, notes, and snippets.

@pennyworth12345
Created June 5, 2016 06:32
Show Gist options
  • Save pennyworth12345/a309b73aec15fabb649bcdb49e3262f3 to your computer and use it in GitHub Desktop.
Save pennyworth12345/a309b73aec15fabb649bcdb49e3262f3 to your computer and use it in GitHub Desktop.
//+ icons on all building positions (used by AI and mission makers for loot)
buildingPositions = addMissionEventHandler ["Draw3D", {
_positions = nearestBuilding player buildingPos -1;
{
drawIcon3D ["\a3\ui_f\data\gui\cfg\cursors\add_gs.paa", [0,0,0,1], _x, 0.75, 0.75, 0, format["Position %1",_foreachIndex+1]];
} foreach _positions;
}];
//removed with
removeMissionEventHandler ["Draw3D", buildingPositions];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment