beno_83au 1369 Posted December 15, 2018 Download: MIL_Mirror: Dropbox/Armaholic Description: Another pretty basic script, MIL_ClearGrass allows players to create firelanes through grass or to simply clear small patches of grass to give unobstructed observation. "Land_ClutterCutter_small_F" is used to clear the grass, and when clearing patches is spawned 0.5m in front of the player. Features: - AddActions to clear a small patch of grass, or clear a point-to-point line through grass. - Mission designers can choose to enable/disable clearing of both patches and/or firelanes. - Mission designers can also add a required item to be in the player's inventory to be able to clear any grass. To use: - Copy the file MIL_ClearGrass.sqf to your mission folder. - Run the script on clients (from init.sqf or initPlayerLocal.sqf) using: nul = [_availableActions,_itemsRequired] execVM "MIL_ClearGrass.sqf"; - _availableActions - number (optional) - default: 0 - determine what grass clearing option can be used - 0 - both - 1 - clear grass patch - 2 - clear fire lane - _itemsRequired - array of strings (optional) - default: [] - classNames of any items required to clear any grass - Example: nul = [] execVM "MIL_ClearGrass.sqf"; - Players will be able to use both actions without restrictions. nul = [1,["ACE_EntrenchingTool"]] execVM "MIL_CAS.sqf"; - Players will only be able to clear patches of grass any need to have an ACE Entrenching Tool in their inventory. Media: Small demo of clearing some grass for a prone machine gunner (1.00s): Known issues: - Be aware, it can be a bit fiddly sometimes to get the right spot to remove patches of grass. If anyone finds any problems please let me know. Thank you. 4 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted December 15, 2018 Nice as always Beno , congratulations ! It's time for gardening ! 1 Share this post Link to post Share on other sites
beno_83au 1369 Posted December 15, 2018 Edited the OP slightly to indicate that this should be executed locally for clients. 1 Share this post Link to post Share on other sites
loopdk 92 Posted December 15, 2018 Not sure if this is open code ore... I found it in a Alive mission somtime ago.... if (!isDedicated) then { _action = ["action_L16_grasscutter","Remove grass","",{if (stance player == "PRONE") then {player playMove "AinvPpneMstpSnonWnonDnon_Putdown_AmovPpneMstpSnonWnonDnon";} else {player playMove "AinvPknlMstpSnonWnonDnon_medic0";}; [10, [], {_cutter= "Land_ClutterCutter_medium_F" createVehicle [0,0,0]; _cutter setPos (getpos player);}, {}, "Remove grass"] call ace_common_fnc_progressBar;},{true;}] call ace_interact_menu_fnc_createAction; [(typeOf player), 1, ["ACE_SelfActions", "ACE_Equipment"], _action] call ace_interact_menu_fnc_addActionToClass; }; this add the option in ace menu to remove grass Share this post Link to post Share on other sites
johnnyboy 3799 Posted December 15, 2018 Our ruggedly good looking scripter from down undah strikes again! Good on ya mate! 1 1 Share this post Link to post Share on other sites
gc8 981 Posted December 16, 2018 I always roll on the grass to make it flat... Don't need this, lol JK! 1 Share this post Link to post Share on other sites
beno_83au 1369 Posted December 16, 2018 2 hours ago, gc8 said: I always roll on the grass to make it flat... Don't need this, lol JK! Haha i know, but it always grows back!! Share this post Link to post Share on other sites