Page MenuHomeFeedback Tracker

Hitpart EH no longer returns useful selection variable for use in selectionPosition command
Closed, ResolvedPublic

Description

Previously the selection variable generated when the EH would fire was able to be taken and put into selectionPosition to gain valuable information. This no longer appears to be the case as the selectionPosition command is only working then 'position' string inside a given useraction or smashable window etc.

Details

Legacy ID
3071722686
Severity
Major
Resolution
Duplicate
Reproducibility
Always
Category
Scripting
Steps To Reproduce

create a 'Hitpart' eventHandler on a building with doors and add something like
{

_array = _this select 0;
_build = _array select 0;
_selection = (_array select 5) select 0;
_hitSelPos = _build selectionPosition _selection;
hint (str(_hitSelPos));

};

as the code to execute when the EH fires.

notice how the hint returns [0,0,0] which selectionPosition does when the selection is incorrect.

Additional Information

The selectionPosition command works correctly when you pull up the 'position' variable from a user action (for the doors) or the same for the class for smashing glass. perhaps have the EH return this string instead of on that i can't for the life of me seem to find correlating anywhere in the configfile?

Event Timeline

zorilya edited Steps To Reproduce. (Show Details)Mar 29 2013, 11:56 PM
zorilya edited Additional Information. (Show Details)
zorilya set Category to Scripting.
zorilya set Reproducibility to Always.
zorilya set Severity to Major.
zorilya set Resolution to Duplicate.
zorilya set Legacy ID to 3071722686.May 7 2016, 1:17 PM

Duping to #16460 due to assignment.