Custom variables/fields for units? [closed]
//ads -- adsterra.com -- native banner
?>
Is there a way to associate new/custom variables with units?
There are two triggers I want to apply on a unit.
- First trigger, invoked on a unit, should check the current order assigned to it and remember the order target (of type
unitorinteger(unit ID)) - Second trigger occuring on the same unit should recall the value, and do something with it. But when the second trigger occurs, the old order does not exist anymore.
There is UnitSetCustomValue, but this one works on Real types and not int or unit. I cannot store unit-ID in it because I lose precision.
Pictures about "Custom variables/fields for units? [closed]"
![Custom variables/fields for units? [closed] - Photo of Person in Green and Brown Camouflage Uniform Custom variables/fields for units? [closed] - Photo of Person in Green and Brown Camouflage Uniform](/assets/images/custom_variablesfields_for_units_closed_1.jpeg)
![Custom variables/fields for units? [closed] - Selective Focus of a Person Holding Paper Money Custom variables/fields for units? [closed] - Selective Focus of a Person Holding Paper Money](/assets/images/custom_variablesfields_for_units_closed_2.jpeg)
![Custom variables/fields for units? [closed] - Closeup Photo of Gray and Black Custom Frame Custom variables/fields for units? [closed] - Closeup Photo of Gray and Black Custom Frame](/assets/images/custom_variablesfields_for_units_closed_3.jpeg)
WinCC Unified V16: Units on the I/O field by using the Output format
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: RODNAE Productions, RODNAE Productions, Karolina Grabowska, Kevin Bidwell
