# Reset All User Data
Grammar — Reset all user data
Flags —Native
|Action
Resets all user data to the default values defined in the Data module.
Returns — void
native void UserDataResetAll();
# Related
Category: User Data / Utility
- Reset User Data Value —
void
— UserDataResetValue - Reset User Data Instance —
void
— UserDataResetInstance - Reset User Data Type —
void
— UserDataResetType - Reset All User Data —
void
— UserDataResetAll - User Type From Reference —
string
<gamelink::User> — UserDataTypeFromReference - User Instance From Reference —
string
<userinstance> — UserDataInstanceFromReference
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13325
// Implementation
UserDataResetAll();
libSwaC_gv_zSX_IsSimulation = false;
libSwaC_gv_zSX_IsVictoryPlayAgain = false;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7199
// Implementation
UserDataResetAll();
libVoiC_gv_pCX_IsSimulation = false;
libVoiC_gv_pCX_IsVictoryPlayAgain = false;
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3308
// Implementation
UserDataResetAll();
libComC_gv_cCX_IsSimulation = false;
libComC_gv_cCX_IsVictoryPlayAgain = false;
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6434
// Implementation
UserDataResetAll();
libA3DDD02B_gv_pPX_IsSimulation = false;
libA3DDD02B_gv_pPX_IsVictoryPlayAgain = false;