hi everyone, happy new year eve,
i read bribe GUI tutorial,
wich tell that every GUI with () is actually a function call...
so in order to remove and clean trigger i used variable.
TempUnitArray[0] = killing unit
TempUnitType[0] = killing unit type
TempPlayerArray[0] = owner of killing unit
TempUnitArray[1] = dying unit
TempUnitType[1] = dying unit type
TempPlayerArray[1] = owner of dying unit
this should make trigger much more efficient, but since i use variable i should clean those variable at the end of trigger, when these are no more needed.
so i used:
custom script: set udg_TempUnitType[0] = null
custom script: set udg_TempUnitArray[0] = null
custom script: set udg_TempPlayerArray[0] = null
but when saving it read an error with "TempUnitType"
type unit cannot be nulled? do i still need to clean it?
should i use = no unit instead of = null ?
i read bribe GUI tutorial,
wich tell that every GUI with () is actually a function call...
so in order to remove and clean trigger i used variable.
TempUnitArray[0] = killing unit
TempUnitType[0] = killing unit type
TempPlayerArray[0] = owner of killing unit
TempUnitArray[1] = dying unit
TempUnitType[1] = dying unit type
TempPlayerArray[1] = owner of dying unit
this should make trigger much more efficient, but since i use variable i should clean those variable at the end of trigger, when these are no more needed.
so i used:
custom script: set udg_TempUnitType[0] = null
custom script: set udg_TempUnitArray[0] = null
custom script: set udg_TempPlayerArray[0] = null
but when saving it read an error with "TempUnitType"
type unit cannot be nulled? do i still need to clean it?
should i use = no unit instead of = null ?