# Set Dialog Item Unit Value
Grammar — Set dialogItem property to value for players
Flags —Native
|Action
|Internal
# Arguments
int
<control> — Dialog Itemint
<preset::ControlProperty> — Propertyplayergroup
— Playersunit
— Value
Returns — void
native void DialogControlSetPropertyAsUnit(
int control,
int property,
playergroup players,
unit value,
);
# Related
Category: Dialog / Dialog Item Values / Internal
- Dialog Item Text Value —
text
— DialogControlGetPropertyAsText - Dialog Item String Value —
string
— DialogControlGetPropertyAsString - Dialog Item Integer Value —
int
— DialogControlGetPropertyAsInt - Dialog Item Real Value —
fixed
— DialogControlGetPropertyAsFixed - Dialog Item Boolean Value —
bool
— DialogControlGetPropertyAsBool - Dialog Item Color Value —
color
— DialogControlGetPropertyAsColor - Dialog Item Control Value —
int
<control> — DialogControlGetPropertyAsControl - Dialog Item Unit Value —
unit
— DialogControlGetPropertyAsUnit - Dialog Item Unit Group Value —
unitgroup
— DialogControlGetPropertyAsUnitGroup - Set Dialog Item Text Value —
void
— DialogControlSetPropertyAsText - Set Dialog Item String Value —
void
— DialogControlSetPropertyAsString - Set Dialog Item Integer Value —
void
— DialogControlSetPropertyAsInt - Set Dialog Item Real Value —
void
— DialogControlSetPropertyAsFixed - Set Dialog Item Boolean Value —
void
— DialogControlSetPropertyAsBool - Set Dialog Item Color Value —
void
— DialogControlSetPropertyAsColor - Set Dialog Item Control Value —
void
— DialogControlSetPropertyAsControl - Set Dialog Item Unit Value —
void
— DialogControlSetPropertyAsUnit - Set Dialog Item Unit Group Value —
void
— DialogControlSetPropertyAsUnitGroup
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2913
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsUnit(lp_dialogItem, c_triggerControlPropertyUnit, lp_players, lp_unit);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2367
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsUnit(lp_dialogItem, c_triggerControlPropertyUnit, lp_players, lp_unit);
}