# User Data (Image Attach)

Grammar — User Data (userType, instance, field, index)
FlagsNative | Function

Returns a value from user data for the given type, instance, and field. User data is defined in the Data module.

# Arguments

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

Returns — string [ preset::AttachPoints ]

native string UserDataGetImageAttachPoint(
	string inType,
	string inInstance,
	string inField,
	int inIndex,
);

Category: User Data / Get Value

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L8376
UserDataGetImageAttachPoint("CalloutAttachment", libSwaC_gf_ZS_ArmyCategoryCalloutAttachment(lp_armyCategory), "Attachment", 1)
// L8426
UserDataGetImageAttachPoint("CalloutAttachment", lp_attachment, "Attachment", 1)
// L8431
UserDataGetImageAttachPoint("CalloutAttachment", lp_attachment, "Attachment", 1)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L5037
UserDataGetImageAttachPoint("CalloutAttachment", lib281DEC45_gf_ZSS_CharacterCalloutData(lp_character), "Attachment", 1)
// L5042
UserDataGetImageAttachPoint("CalloutAttachment", lib281DEC45_gf_ZSS_CharacterCalloutData(lp_character), "Attachment", 1)