Skip to content

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

Streamator_fnc_addSearchTarget

Add a Target to Search for

Parameter(s):

["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

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):

Reference/Example Code

Clone this wiki locally