Page MenuHomeFeedback Tracker

allActions array
New, WishlistPublic

Description

To compliment:

addAction
removeAction
removeAllActions

I would like to see a local allActions array.

'allActions player'

Yes we can make our own but this can be quite difficult to manage. There is an array stored somewhere in the engine, for the removeAllActions function to access. I would like to see that brought forward slightly, to allow scripted check of that array.

Details

Legacy ID
2741083466
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request
Additional Information

The reason is partially to aid scripting, and partially security.

I have had people up to no good on my server, and my detection showed they were using action menu for their little tricks.

Would be nice to detect how many actions the player currently has. For instance if the scenario adds 12 actions via addAction, but they have 22 actions, that indicates something is wrong.

At the moment I have no way to count how many actions a client actually has in their action menu.

Assuming below QS_currentActions is a scripted array, adding each action to it for management. I can count the actions I add to the client, but not the total number of actions the client actually has.

if ((count (allActions player)) > (count QS_currentActions)) then { /* somethings wrong */ removeAllActions player; {player addAction _x;} count QS_currentActions;};

Event Timeline

MDCCLXXVI edited Additional Information. (Show Details)
MDCCLXXVI set Category to Feature Request.
MDCCLXXVI set Reproducibility to Always.
MDCCLXXVI set Severity to None.
MDCCLXXVI set Resolution to Open.
MDCCLXXVI set Legacy ID to 2741083466.May 7 2016, 8:07 PM