Search the Community
Showing results for tags 'cron'.
Found 1 result
-
[RELEASE] Cron manager for Arma 3 - less loops, more performance
ussrlongbow posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, this script has been refactored and proven for 1 year already Current version: 1.0 What is it? This is a cron manager for Arma 3. It is a similar for crontab in Linux or Task Scheduler in Windows. It allows you to execute code at a scheduled time, repetitive or not. Script will help to avoid endless loops and make performance optimized missions with greater flexibility in terms of managing your code execution. This script is designed for server-side execution, but also works in SP What's inside? Script contains of 4 functions: RWT_fnc_cronInit - initializes cron manager, executed on postIinit RWT_fnc_cronJobAdd - adds jobs to cron manager RWT_fnc_cronJobRemove - remove job from cron manager RWT_fnc_cronJobRun - function that runs the code, when its time comes Example use case? Make an explosion in 30 minutes Periodically run garbage clean up code, say every 2 minutes Any other usecase which requires higher time lags (minutes, hours) How to start using it? Script is packaged according to guidelines of Arma 3 Mission Skeleton, so if you are using it, just download it to your mission's addons folder and run build script. If you are more experienced mission maker or scripter - grab the source from github. To add a task: [{hint str time},[],0,20,0] call RWT_fnc_cronJobAdd; // will display time every 20 seconds Please read the comments and description to functions Source - https://github.com/ussrlongbow/rwt_cron Package - https://github.com/ussrlongbow/rwt_cron/releases/download/v1.0/rwt_cron_a3ms.zip- 20 replies
-
- 10