Page MenuHomeFeedback Tracker

Scripting Command Request: createNamespace
Closed, ResolvedPublic

Description

Command: createNamespace
Description: Creates a namespace. Used to store and read variables via setVariable and getVariable.
Syntax: createNamespace local;

  • local: Boolean

Return Value: Namespace
Examples:
Local namespace:

private _namespace = createNamespace true;
_namespace setVariable ["test", 10];

Global namespace:

private _namespace = createNamespace false;
_namespace setVariable ["test", 1000, true];

Details

Severity
Feature
Resolution
Won't Fix
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Digitals created this task.May 9 2020, 3:11 PM
dedmen closed this task as Resolved.May 9 2020, 7:48 PM
dedmen changed Resolution from Open to Won't Fix.
dedmen added a subscriber: dedmen.

You can already do that yourself. Use a simple object or a location.