Binary_Moon:
I'm well aware of that hack, but I needed something more dynamic and flexible - this is one way I've found round it. This way you can pass an entity to a function and get a property without the function needing to know anything about the 'Type' you have created for the entity - this being the main falldown of types in my opinion as it stops you from having generic functions.
Anyway, I've posted the code and the idea so that anyone who might find it useful can use it. If anyone can help to refine it then please do.
Skidracer:
Glad you like it. I'll try some tests an see if HideEntity makes a difference.
I'm well aware of that hack, but I needed something more dynamic and flexible - this is one way I've found round it. This way you can pass an entity to a function and get a property without the function needing to know anything about the 'Type' you have created for the entity - this being the main falldown of types in my opinion as it stops you from having generic functions.
Anyway, I've posted the code and the idea so that anyone who might find it useful can use it. If anyone can help to refine it then please do.
Skidracer:
Glad you like it. I'll try some tests an see if HideEntity makes a difference.