# Trigger Upgrade Level Delta
Grammar — Trigger Upgrade Level Delta
Flags —Native
|Function
When “Player Upgrade Changed” occurs, “Triggering Upgrade” can be used to find out the how many levels the upgrade get changed.
Returns — int
native int EventUpgradeLevelDelta();
# Related
Category: Tech Tree / Upgrades
- Triggering Upgrade —
string
<gamelink::Upgrade> — EventUpgradeName - Trigger Upgrade Level Delta —
int
— EventUpgradeLevelDelta - Player Upgrade Changed —
void
— TriggerAddEventUpgradeLevelChanged
# Examples
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19802
lv_player = EventPlayer();
lv_upgrade = EventUpgradeName();
lv_delta = EventUpgradeLevelDelta();
// Conditions