Page MenuHomeFeedback Tracker

A scripting command to execute unscheduled code on next frame
New, NormalPublic

Description

Working around Arma engine quirks often requires executing something at an exact frame and most often it is just the next frame. This is already very much possible with per frame event handlers, but requires manual frame counting, storing it in variables, adding and removing event handlers. To simplify this, I'd like to request a dedicated command to execute unscheduled code on the next frame, to offload all that to engine side. Suggested syntax:

NOTHING = ANYTHING callNextFrame CODE

with ANYTHING being any arguments passed into the code as _this on the next frame.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Example test if such command existed:

diag_frameno callNextFrame {
    systemChat str (diag_frameno - _this);
};

would print 1 in the chat.

Event Timeline

SaMatra created this task.Oct 21 2023, 7:01 AM
SaMatra edited Steps To Reproduce. (Show Details)
h- added a subscriber: h-.Oct 21 2023, 7:19 AM

Good idea but will require too much work