Page MenuHomeFeedback Tracker

Game Logics' Init Boxes Not Being Read on Mission Loads
New, WishlistPublic

Description

Some commands are not being read from Game Logics on the loading of a saved game.

Details

Legacy ID
3198303643
Severity
None
Resolution
Open
Reproducibility
Have Not Tried
Category
Scripting
Steps To Reproduce

Enter the editor.

Place a game logic named "Game_Logic_A" next to a damaged windmill structure (as an example). Add this to the init box: ((nearestobjects [this, ["Land_d_Windmill01_F"], 5]) select 0) hideObject true;

Now save game and load it. You will notice that the windmill which was originally hidden is no longer.

Event Timeline

Bohemia edited Steps To Reproduce. (Show Details)Jul 29 2014, 12:27 PM
Bohemia edited Additional Information. (Show Details)
Bohemia set Category to Scripting.
Bohemia set Reproducibility to Have Not Tried.
Bohemia set Severity to None.
Bohemia set Resolution to Open.
Bohemia set Legacy ID to 3198303643.May 7 2016, 7:06 PM

Loading saved games is known to screw up a lot of things, I'd suggest not using code in an editor object's init.