From Savage Game Design Wiki
Revision as of 12:47, 16 September 2019 by vn>Unknown user
Jump to navigation
Jump to search
Description
/*
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
(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)
Syntax
- Syntax
- [] call vn_ms_fnc_tracker_tracksLoop;
- Return value
- Nothing
Examples
- Example 1
-