• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /General
  • /A3G-97
Back
1

Add `return` command / keyword

Feature Request
1

State

Open
Issue key
A3G-97
Access
Public
Space
Arma 3
Project
General
Creator
milorules1012
Created
Sep 27, 2026
Views
14
Issue Type
Feature Request
Severity
Just a suggestion
Description

Follows the discussion here:

https://discord.com/channels/105462288051380224/105462984087728128/1553865374129332245

It would be super sick to have a return command or keyword. For example:

private _lcl_injurePlayer = {
    player setDamage 0.5;
    return "You've been hurt!";
};

This would have the following use cases:

  • Making readability easier for telling if someone is actually intending to return something like _array pushBack _value that comes last in block or if it is just the last statement and it's value is unsused.

  • Providing a nicer looking method of breaking scope with a value over exitWith.

  • Make me happy :)!

Thank you again for all what you guys do!

Reactions

Activity

    about 1 hour ago
  • milorules1012
    created issueabout 1 hour ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
A3G-97
Access
Public
Space
Arma 3
Project
General
Creator
milorules1012
Created
Sep 27, 2026
Views
14