Page MenuHomeFeedback Tracker

BIS_fnc_randomPosTrigger for markers is broken
Closed, ResolvedPublic

Description

In the function BIS_fnc_randomPosTrigger you have the ability to just call it by "["anyMarkerName"]call BIS_fnc_randomPosTrigger;".
You will then get an error because of following code:

_tPos = [_this,0,[0,0,0],[[],objnull,""],[2,3]] call bis_fnc_param;

//--- Marker
if (typename _tPos == "") then {
_tArea = [markersize _tPos + [markerdir _tPos,markershape _tPos == "rectangle"]];
_tPos = markerpos _tPos;
};

_tPos given as string will allways return false for the check (typename _tPos == ""). It should be (typename _tPos == typename "") in order to work properly.

Details

Legacy ID
2761073186
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting

Event Timeline

Fett_Li edited Steps To Reproduce. (Show Details)Mar 18 2014, 4:31 PM
Fett_Li edited Additional Information. (Show Details)
Fett_Li set Category to Scripting.
Fett_Li set Reproducibility to Always.
Fett_Li set Severity to None.
Fett_Li set Resolution to Fixed.
Fett_Li set Legacy ID to 2761073186.May 7 2016, 6:12 PM

In the same function - again regarding markers - there is another error:
_tArea for markers is not given correctly. _tArea should be defined by:
_tArea = [markersize _tPos select 0,markersize _tPos select 1,markerdir _tPos,markershape _tPos == "rectangle"];

With my corrections the function works properly, also for markers.

Thanks for feedback! Should be fixed in next dev branch update.

MadDogX added a subscriber: MadDogX.May 7 2016, 6:12 PM

Mass closing tickets marked as resolved more than 1 month ago.

If the issue is in fact not resolved, please create a new ticket referencing this one and ask for it to be re-opened.