-
Notifications
You must be signed in to change notification settings - Fork 3
User Functions
Joko edited this page Jul 23, 2020
·
3 revisions
With the User Functions, you can Define Custom search Targets and Custom3D Markers.
Remark: These functions need to be called from a CLib Context. The easiest way todo that from a mission creator perspective is to eather use CLib_fnc_registerEntryPoint or MissionModules
Add a Target to Search for
Parameter(s):
- Name of Target
<String> - Target
<Object>,<String>,<Location>,<Array> - Distance Offset
<Number>(Default: 5) - Hight Offset
<Number>(Default: 1)
["Bob", bob, 3, 1.5] call Streamator_fnc_addSearchTarget;
["Kavala", nearestLocation [[3458.67,12966,0], ""], 300, 200] call Streamator_fnc_addSearchTarget;
["My Hideout", [14471.3,6184.96,0], 50, 25] call Streamator_fnc_addSearchTarget;
["My Marked Place", "MyMarker", 50, 25] call Streamator_fnc_addSearchTarget;Streamator_fnc_addCustom3dIcon is a Wrapper for CLib_fnc_add3dGraphics that adds the ability to hide the icons via F3
Remark(s):
For removing Custom Icons use CLib_fnc_remove3dGraphics
Parameter(s):
- Icon ID
<String> - CLib GraphicsData
<3dGraphicsData>