Search object/ person function

Description
This function adds an ace "search" action to given object. Upon completion it creates a variable with the value "true" with given name and can execute some code, the action will be removed from object. Run with only one parameter will create an unsuccessful search.

Function Header
Function name:MRH_fnc_SearchObject; Author: Mr H. Description: This function adds an ace "search" action to given object. Upon completion it creates a variable with the value "true" with given name and can execute some code, the action will be removed from object. Run with only one parameter will create an unsuccessful search. Return value: None Public: Yes Parameters: 0-  - Object to add the action two. If only this parameter is set the search will be unsuccessful. 1 -  - Optional - Variable name, a public variable with this name will be created, can be used to activate a trigger. 2 - - Optional or Mandatory if parameter 1 is defined, name of the thing that was found, will be displayed in a hint to inform the player they have found something. 3 -  - Optional, code to execute when search is complete, source object is passed as a parameter. Example(s): [this, "objectFound","A screwdriver"] call MRH_fnc_SearchObject; // will create a GLOBAL variable objectFound upon search completion. And hint "You have found: A screwdriver" or [this, "intelFound","A top secret file",{deleteVehicle (_this select 0);}] call MRH_fnc_SearchObject; // will remove the object after use to make a "dummy search" just put the object parameter to call the function eg [this] call MRH_fnc_SearchObject; // will hint "Search over, you haven't found anything" upon completion.