Page MenuHomeFeedback Tracker

actionParams scripting command returns nil if...
New, NormalPublic

Description

https://community.bistudio.com/wiki/actionParams

If action index is incorrect, actionParams returns nil, requiring an isNil evaluation in scripts.

Ideally it should return empty array [] if ID is bad: hint str (player actionParams 456); // []

_actionParams = player actionParams _forEachIndex;
if (!(isNil '_actionParams')) then {

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

MDCCLXXVI created this task.Dec 6 2016, 6:41 AM
MDCCLXXVI updated the task description. (Show Details)