Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* =============================================
- init_timejump.sqf
- Author: richarddanh.com
- Time Jump
- ================================================= */
- jumpflag addAction [ ("<t color='#FF0C10'>" + "Jump To Dawn" + "</t>"), "scripts\time_jump\timejump.sqf", [7, 0] ];
- jumpflag addAction [ ("<t color='#FF0C10'>" + "Jump To Noon" + "</t>"), "scripts\time_jump\timejump.sqf", [12, 0] ];
- jumpflag addAction [ ("<t color='#FF0C10'>" + "Jump To Dusk" + "</t>"), "scripts\time_jump\timejump.sqf", [16, 30] ];
- jumpflag addAction [ ("<t color='#FF0C10'>" + "Jump To Midnight" + "</t>"), "scripts\time_jump\timejump.sqf", [0, 0] ];
- "targetTime" addPublicVariableEventHandler
- {
- skipTime (targetTime - daytime + 24 ) % 24;
- };
- "timeAcc" addPublicVariableEventHandler
- {
- //Set the Date for complete syncing with the server
- setDate [date select 0, date select 1, date select 2, timeAcc select 0, timeAcc select 1];
- };
Advertisement
Add Comment
Please, Sign In to add comment