Difference between revisions of "VN ms fnc tracker tracksLoop"

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= Loop that monitors player speed and periodicaly leaves tracks on his position.
    Author: Wyqer, veteran29
 
    Date: 2019-08-11
 
 
 
    Description:
 
        Loop that monitors player speed and periodicaly leaves tracks on his position.
 
 
 
    Parameter(s):
 
        NONE
 
 
 
    Returns:
 
        Function reached the end [BOOL]
 
*/
 
 
 
["ItemAdd", [
 
    "vn_tracksLoop",
 
    {
 
        private _playerPos = getPos player;
 
        if (
 
            player distance vn_ms_lastTrackLocal < VN_MS_TRACKS_SPACING
 
            || {vectorMagnitude velocity player < VN_MS_TRACKS_MAGNITUDE}
 
            || {surfaceIsWater _playerPos}
 
            || {!isNull objectParent player}
 
        ) exitWith {};
 
 
 
        vn_ms_lastTrackLocal = _playerPos;
 
        [missionNamespace, "vn_ms_tracksCreate", [player]] remoteExecCall ["BIS_fnc_callScriptedEventHandler", 2] ;
 
    },
 
    VN_MS_TRACKS_DELAY
 
]] call BIS_fnc_loop;
 
 
 
true
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[vn_ms_fnc_tracker_tracksLoop]];
+
|s= [] call [[VN_ms_fnc_tracker_tracksLoop]]
  
 
|p1n=
 
|p1n=
Line 56: Line 25:
 
|p2v=
 
|p2v=
  
|r1t=
+
|r1t= boolean
|r1d=
+
|r1d= function's success
  
|x1= <code>-</code>
+
|x1= <code>[] call [[VN_ms_fnc_tracker_tracksLoop]];</code>
 
}}
 
}}

Latest revision as of 16:30, 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

Loop that monitors player speed and periodicaly leaves tracks on his position.

Syntax

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

Examples

Example 1
[] call VN_ms_fnc_tracker_tracksLoop;