• Tracker

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

Add `return` command / keyword

Feature Request
2

State

Rejected
Issue key
A3G-97
Access
Public
Space
Arma 3
Project
General
Creator
milorules1012
Created
Sep 27, 2026
Views
115
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 2 months ago
  • milorules1012
    created issueabout 2 months ago
  • about 2 months ago
  • bis_fnc_kk
    changed state to
    REJECTED
    about 2 months ago
  • bis_fnc_kk
    Moderator
    commented
    about 2 months ago
    bis_fnc_kk
    Moderator
    commented
    about 2 months ago

    We have been through this many times before, rejected for now to have less clutter on the main page. Feel free to request it sometime in the future again in case something changed.

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

State

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