Difference between revisions of "VN ms fnc tracker preInit"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (1 revision imported)
(Page filling)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Wyqer, veteran29
+
|author= Wyqer, veteran29
 +
 
 +
|a=
  
 
|e=
 
|e=
Line 10: Line 11:
 
|g1= tracker
 
|g1= tracker
  
|d= <pre>/*
+
|d= Tracker system preInit. Uses [[VN_ms_fnc_tracker_tracksCreate]] and [[VN_ms_fnc_tracker_receiveNoise]].
    Author: Wyqer, veteran29
 
    Date: 2019-08-10
 
 
 
    Description:
 
        Tracker system preInit.
 
 
 
    Parameter(s):
 
        NONE
 
 
 
    Returns:
 
        Function reached the end [BOOL]
 
*/
 
 
 
#ifdef VN_DEBUG
 
    vn_ms_tracker_debug = true;
 
#else
 
    vn_ms_tracker_debug = false;
 
#endif
 
 
 
vn_ms_tracker_audibleFireCache = createSimpleObject ["a3\weapons_f\empty.p3d", [-1337, -1337, 0], true];
 
"vn_ms_tracker_noisePos" addPublicVariableEventHandler {(_this select 1) call vn_ms_fnc_tracker_receiveNoise};
 
 
 
// all tracks left by players
 
vn_ms_tracks = [];
 
// last track position left by player
 
vn_ms_lastTrackLocal = [0,0,0];
 
 
 
// handle tracks creation
 
[missionNamespace, "vn_ms_tracksCreate", {
 
    params [["_unit", objNull, [objNull]]];
 
 
 
    private _track = _unit call vn_ms_fnc_tracker_tracksCreate;
 
 
 
    vn_ms_tracks pushBack _track;
 
    if (count vn_ms_tracks > VN_MS_TRACKS_LIMIT) then {
 
        deleteMarker (vn_ms_tracks deleteAt 0);
 
    };
 
 
 
    // Publish to clients if debug enabled
 
    if (missionNamespace getVariable ["vn_ms_debug", false]) then {
 
        publicVariable "vn_ms_tracks";
 
    };
 
 
 
}] call BIS_fnc_addScriptedEventHandler;
 
 
 
true
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[vn_ms_fnc_tracker_preInit]];
+
|s= [] call [[VN_ms_fnc_tracker_preInit]]
  
 
|p1n=
 
|p1n=
Line 71: Line 25:
 
|p2v=
 
|p2v=
  
|r1t=
+
|r1t= boolean
|r1d=
+
|r1d= function's success
  
|x1= <code>-</code>
+
|x1= <code>[] call [[VN_ms_fnc_tracker_preInit]];</code>
 
}}
 
}}

Latest revision as of 16:11, 26 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

Tracker system preInit. Uses VN_ms_fnc_tracker_tracksCreate and VN_ms_fnc_tracker_receiveNoise.

Syntax

Syntax
[] call VN_ms_fnc_tracker_preInit
Return value
Boolean - function's success

Examples

Example 1
[] call VN_ms_fnc_tracker_preInit;