Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//+ icons on all the sound memory points
memPoints = ["sound_air_condition_1","sound_air_condition_2","sound_air_condition_3","sound_air_condition_4","sound_air_condition_5","sound_clothes_1","sound_clothes_2","sound_electric_box_1","sound_electric_box_2","sound_electric_box_3","sound_electric_box_4","sound_electric_box_5","sound_gutter_1","sound_gutter_2","sound_gutter_3","sound_gutter_4","sound_gutter_5","sound_gutter_6","sound_gutter_7","sound_gutter_8","sound_head","sound_metal_stairs_1","sound_metal_stairs_2","sound_metal_stairs_3","sound_metal_stairs_solid_1","sound_metal_stairs_solid_2","sound_metal_stairs_solid_3","sound_metal_tension_1","sound_metal_tension_10","sound_metal_tension_11","sound_metal_tension_2","sound_metal_tension_3","sound_metal_tension_4","sound_metal_tension_5","sound_metal_tension_6","sound_metal_tension_7","sound_metal_tension_8","sound_metal_tension_9","sound_net_fence_1","sound_rain_metalPlate_large_1","sound_rain_metalPlate_large_2","sound_rain_metalPlate_medium_1","sound_rain_metalPlate_medium_2","sound_rain_metalPlate_medium_3","sound_rain_metalPlate_medium_4","sound_rain_metalPlate_medium_5","sound_rain_metalPlate_medium_6","sound_rain_metalPlate_small_1","sound_rain_metalPlate_small_2","sound_rain_metalTin_large_1","sound_rain_metalTin_large_2","sound_rain_metalTin_large_3","sound_rain_metalTin_large_4","sound_rain_metalTin_large_narrow_1","sound_rain_metalTin_large_narrow_2","sound_rain_metalTin_large_narrow_3","sound_rain_metalTin_large_narrow_4","sound_rain_metalTin_medium_1","sound_rain_metalTin_medium_2","sound_rain_metalTin_medium_3","sound_rain_metalTin_medium_4","sound_rain_metalTin_medium_5","sound_rain_metalTin_medium_narrow_1","sound_rain_metalTin_medium_narrow_2","sound_rain_metalTin_medium_narrow_3","sound_rain_metalTin_medium_narrow_4","sound_rain_metalTin_small_1","sound_rain_metalTin_small_2","sound_rain_metalTin_small_3","sound_rain_metalTin_small_4","sound_rain_metalTin_small_narrow_1","sound_rain_metalTin_small_narrow_2","sound_rain_metalTin_small_narrow_3","sound_rain_metalTin_small_narrow_4","sound_rain_metalTin_tiny_1","sound_rain_metalTin_tiny_10","sound_rain_metalTin_tiny_11","sound_rain_metalTin_tiny_12","sound_rain_metalTin_tiny_13","sound_rain_metalTin_tiny_14","sound_rain_metalTin_tiny_15","sound_rain_metalTin_tiny_16","sound_rain_metalTin_tiny_17","sound_rain_metalTin_tiny_18","sound_rain_metalTin_tiny_19","sound_rain_metalTin_tiny_2","sound_rain_metalTin_tiny_20","sound_rain_metalTin_tiny_21","sound_rain_metalTin_tiny_22","sound_rain_metalTin_tiny_23","sound_rain_metalTin_tiny_3","sound_rain_metalTin_tiny_4","sound_rain_metalTin_tiny_5","sound_rain_metalTin_tiny_6","sound_rain_metalTin_tiny_7","sound_rain_metalTin_tiny_8","sound_rain_metalTin_tiny_9","sound_rain_stone_medium_1","sound_rain_stone_small_1","sound_ruins_1","sound_ruins_2","sound_ruins_3","sound_shed_1","sound_shrub_bigleaves_1","sound_shrub_mediumleaves_1","sound_shrub_smallleaves_1","sound_shrub_smallleaves_2","sound_shrub_smallleaves_3","sound_slum_1","sound_smalltree_mediumleaves_1","sound_smalltree_smallleaves_1","sound_tree_bigleaves_1","sound_tree_mediumleaves_1","sound_tree_palmleaves_1","sound_tree_smallleaves_1","sound_watertree_mediumleaves_1","sound_widetree_mediumleaves_1","sound_widetree_smallleaves_1"];
memorySelections = addMissionEventHandler ["Draw3D", {
{
_obj = _x;
{
_pos = _obj selectionPosition [_x, "MEMORY"];
if !(_pos isEqualTo [0, 0, 0]) then {
drawIcon3D ["\a3\ui_f\data\gui\cfg\cursors\add_gs.paa", [1,1,1,1], _obj modelToWorldVisual _pos, 0.75, 0.75, 0, _x];
};
} count memPoints;
nil
} count (nearestTerrainObjects [player, [], 25]);
}];
//removed with
removeMissionEventHandler ["Draw3D", memorySelections];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.