Page MenuHomeFeedback Tracker

BIS_fnc_door has coding error in it
New, NormalPublic

Description

BIS_fnc_door function uses 'this' as argument for disabled door, even for the rest _structure param is used. This will work in BIS user actions fine because this is passed, however if anyone calls this function themselves with the actual arguments that you should be using, it won't work.

For example using something like

_building = cursorTarget;
[_building, 1, 0] call BIS_fnc_door;

won't have this defined there, so it won't work.
Quick fix by just replacing this by _structure

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  • Try using ([cursorTarget, 2, 1] call BIS_fnc_Door)on a house (For door 2) and see it won't work! :D

Event Timeline

Adanteh created this task.Apr 3 2017, 4:22 PM