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.
Description
Description
Details
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?