# Reset User Data Value

Grammar — Reset user data (userType, instance, field, index)
FlagsNative | Action

Resets the given value to the default defined in the Data module.

# Arguments

  • string [ gamelink::User ] — User Type
  • string [ userinstance ] — Instance
  • string [ userfield ] — Field
  • int — Index

Returns — void

native void UserDataResetValue(
	string inType,
	string inInstance,
	string inField,
	int inIndex,
);

Category: User Data / Utility

# Examples

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L5792
UserDataResetValue("Character", lv_indexCharacter, "Unlocked", 1)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L5108
UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L4467
UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1)