You might be able to backwards engineer that script, but like Garner said, it would be pretty crazy complicated.
I may be wrong on this, but I remember Chris Kelly (sorry for calling you out on this one) telling me that
object.GetMaterial
will return boolean, so you can do:
if object.GetMaterial(0, material) = True/False
Is there a way to use that same function to determine which material you have? For example:
if object.GetMaterial(0, blue) = True then
teamname.Text = "Blue Team"
elseif object.GetMaterial(0, red) = True then
teamname.Text = "Red Team"
else
teamname.Text = "League Name"
end if
I'm spitting that out of nowhere and haven't tried it, just trying to get the idea started.
You would need to be very specific about setting up your materials:
dim blue as xpMaterial
dim red as xpMaterial
Engine.GetMaterialByName("Blue Team Logo", blue)
Engine.GetMaterialByName("Red Team Logo", red)
Just a start. Would take some brute force scripting, but could probably be done.
#XPression