Page MenuHomeFeedback Tracker

Edit Terrain Object module door locking is not working properly in multiplayer
New, NormalPublic

Description

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.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Add Edit Terrain Object module to mission, lock some doors on a building
  2. Start mission on a server
  3. Join as client
  4. 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];

Event Timeline

LouMontana added a project: Restricted Project.Oct 31 2020, 2:58 PM