# User Data (Movie)
Grammar — User Data (userType, instance, field, index)
Flags —Native
|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 Typestring
<userinstance> — Instancestring
<userfield> — Fieldint
— Index
Returns — string
<filepath>
native string UserDataGetMovie(
string inType,
string inInstance,
string inField,
int inIndex,
);
# Related
Category: User Data / Get Value
- Load User Data Value Into Variable
- User Data (Ability Command) —
abilcmd
— UserDataGetAbilCmd - User Data (Actor) —
string
<gamelink::Actor> — UserDataGetActor - User Data (Color) —
color
— UserDataGetColor - User Data (Compare) —
int
<preset::UserDataCompare> — UserDataGetCompare - User Data (Game Link) —
string
<gamelink> — UserDataGetGameLink - User Data (Image) —
string
<filepath> — UserDataGetImagePath - User Data (Image Edge) —
int
<preset::TextTagEdge> — UserDataGetImageEdge - User Data (Image Attach) —
string
<preset::AttachPoints> — UserDataGetImageAttachPoint - User Data (Integer) —
int
— UserDataGetInt - User Data (Model) —
string
<gamelink::Model> — UserDataGetModel - User Data (Movie) —
string
<filepath> — UserDataGetMovie - User Data (Real) —
fixed
— UserDataGetFixed - User Data (Sound) —
string
<gamelink::Sound> — UserDataGetSound - User Data (String) —
string
— UserDataGetString - User Data (Text) —
text
— UserDataGetText - User Data (Unit) —
string
<gamelink::Unit> — UserDataGetUnit - User Data (Upgrade) —
string
<gamelink::Upgrade> — UserDataGetUpgrade - User Data (User Type) —
string
<gamelink::User> — UserDataGetUserType - User Data (User Instance) —
string
<userinstance> — UserDataGetUserInstance
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:6833
// Automatic Variable Declarations
// Implementation
return UserDataGetMovie("Scenes", lp_scene, "movie", 1);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:3985
// Automatic Variable Declarations
// Implementation
return UserDataGetMovie("Scenes", lp_scene, "SceneFile", 1);
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:1652
string libComC_gf_CC_SceneMovie (string lp_scene) {
// Implementation
return UserDataGetMovie("Scenes", lp_scene, "SceneFile", 1);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:1253
string libNovC_gf_NC_MapNewsReport (string lp_map) {
// Implementation
return UserDataGetMovie("Maps", libComC_gf_CC_MapUserDataInstance(lp_map), "NewsReport", 1);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:1582
string libNovC_gf_NC_ArmyTechItemMovieFromIndex (string lp_techItem, int lp_upgradeIndex) {
// Implementation
return UserDataGetMovie("CampaignTechItem", lp_techItem, "MovieList", lp_upgradeIndex);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:3503
// Automatic Variable Declarations
// Implementation
return UserDataGetMovie("CampaignPerk", lp_campaignPerk, "Movie", 1);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:5148
// Automatic Variable Declarations
// Implementation
return UserDataGetMovie("Scenes", lp_scene, "movie", 1);
}