onEachFrame statement

Operand types

statement: Code

Type of returned value

Description

Statement is run every frame.

Private variables defined outside of onEachFrame scope are not inherited.
Only one onEachFrame loop can exist at any time.
Script suspension is not permitted within onEachFrame scope.

Used In

Arma2OA

Example

onEachFrame { hintSilent str position player; }; //Hints position every frame
Search OFPEC COMREF

Advertisement