Is there any way to find out the hue of a StaticTarget?
A StaticTarget is an item placed in the map by using Centred.
For example ItemID 2881 (0x0b41) is a "water trough".
What i want to do is have a check run to see if the hue of that StaticTarget is 0 or some other number, then do something with that info. However i can't seem to see anywhere that StaticTarget has hue as a variable to check.
Here's some quasi code that doesn't actually work because there's no StaticTarget.Hue
Would I have to edit the StaticTarget class and add in Hue getters and setters? Is getting the hue of a static item on the map possible?
A StaticTarget is an item placed in the map by using Centred.
For example ItemID 2881 (0x0b41) is a "water trough".
What i want to do is have a check run to see if the hue of that StaticTarget is 0 or some other number, then do something with that info. However i can't seem to see anywhere that StaticTarget has hue as a variable to check.
Here's some quasi code that doesn't actually work because there's no StaticTarget.Hue
Code:
if (targ is StaticTarget)
{
StaticTarget src = (StaticTarget)targ;
if (src == null)
return;
if (src.ItemID >= 2881 && src.ItemID <= 2884 ) //water trough
{
if (src.Hue != 0)
{
//do some stuff
}
}
}
Would I have to edit the StaticTarget class and add in Hue getters and setters? Is getting the hue of a static item on the map possible?