does game_save saves flags ?

Posted By: Mysterious

does game_save saves flags ? - 09/17/09 07:59

Hi

I am using game_save:

game_save("save" , 0 , _VAR(SV_ALL));

and after saving I hide some entities, then I load but the entities are still hidden.

I want load to restore them to the same status before saving
Posted By: Mach

Re: does game_save saves flags ? - 09/17/09 08:19

Hi Mysterious,

Try this to save :
game_save("save",0,SV_ALL);

And to load, use this :
if (game_load("save",0) <= 0) { print("Load Error!"); }
Posted By: Mysterious

Re: does game_save saves flags ? - 09/17/09 08:29

yes the game is loaded but the flags is not loaded I mean the entity is loaded and it's skills is fully loaded but the flags (INVISIBLE in this case) is not loaded,
Posted By: Tobias

Re: does game_save saves flags ? - 09/17/09 08:50

Maybe some function of you that sets the entities invisible is still running?

game_save saves everything with entities, also of course the invisible flag.
© 2023 lite-C Forums