BIS_fnc_moduleEditTerrainObject is executed only on the server and it's not publishing the variable for locked doors which results in door lock not working for clients in multiplayer environment.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- General
Steps To Reproduce
- Add Edit Terrain Object module to mission, lock some doors on a building
- Start mission on a server
- Join as client
- Notice unlocked doors
Additional Information
Notice module executed only on server:
// BIS_fnc_moduleEditTerrainObject /*-------------------------------------------------------------------------------------------------- Setups given terrain object. --------------------------------------------------------------------------------------------------*/ if (!isServer) exitWith {}; // ...
Notice missing variable publishing in this macro which is used to setup/lock doors:
// \a3\modules_f\Environment\EditTerrainObject\defines.inc #define SETUP_DOOR(building,id,state)\ building setVariable [format ["bis_disabled_door_%1", id + 1], [0,1,0] select state];\ building animateSource [format ["door_%1_sound_source", id + 1], [0,0,1] select state, true];\ building animateSource [format ["door_%1_noSound_source", id + 1], [0,0,1] select state, true];