Page MenuHomeFeedback Tracker

[Feature Request] _fnc_scriptName within HashMapObject Methods
Closed, ResolvedPublic

Description

using _fnc_scriptName within a cfgFunctions Function works great.
combined with diag_log it can produce some quite informative debug lines:
[storm][fx_sound](storm_fx_sound_fnc_remote_3d) FX_Sound HMO created - [...]

It would be even more amazing if _fnc_scriptName would pickup the key value when methods are being executed.
[storm][fx_sound](any) Helper Created vs. [storm][fx_sound](#create) Helper Created

Alternative:
introduce 2 new magicVariables

  1. _meth_scriptName specifically to work inside methods
  2. _scriptName to work universially, within CfgFunctions and HMO Methods.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

mrzorn created this task.Apr 11 2024, 1:00 PM
mrzorn updated the task description. (Show Details)Apr 11 2024, 1:02 PM
dedmen closed this task as Resolved.Apr 24 2024, 11:35 AM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

You can add that yourself if you wish.
We will not. The _fnc_scriptName in CfgFunctions is also not automatically added, its in the CfgFunctions init script which prepends a header to every script.
If you want that, you have to script it yourself, just like CfgFunctions does.

We won't do that.