Loadmapstate: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Created page with ''''loadmapstate''' restores the current map to the state it was in when the savemapstate command was last used in that map. Thus, all the sprites will be in the positions th...'
 
No edit summary
Line 1: Line 1:
'''loadmapstate''' restores the current map to the state it was in when the [[savemapstate]] command was last used in that map.  Thus, all the sprites will be in the positions they were in at that time, any sectors that were activated will still be activated, variables will be restored to the values they had at that time (unless the variables were declared with the flag for preventing this), etc.  If there is no cached copy of the map (either because [[savemapstate]] was not used in the map or the state was cleared using [[clearmapstate]], then '''loadmapstate''' does nothing.
'''loadmapstate''' restores the current map to the state it was in when the [[savemapstate]] command was last used in that map.  Thus, all the sprites will be in the positions they were in at that time, any sectors that were activated will still be activated, variables will be restored to the values they had at that time (unless the variables were declared with the flag for preventing this), etc.  If there is no cached copy of the map (either because [[savemapstate]] was not used in the map or the state was cleared using [[clearmapstate]]) then '''loadmapstate''' does nothing.

Revision as of 08:46, 3 November 2009

loadmapstate restores the current map to the state it was in when the savemapstate command was last used in that map. Thus, all the sprites will be in the positions they were in at that time, any sectors that were activated will still be activated, variables will be restored to the values they had at that time (unless the variables were declared with the flag for preventing this), etc. If there is no cached copy of the map (either because savemapstate was not used in the map or the state was cleared using clearmapstate) then loadmapstate does nothing.