Thanks ramones evilDan.
@ramones Thanks for the example, but if you look at it this function hideObject gets tied for a specific Sprite object. What I want to do is call hideObject for any Sprite. Also want to void checking in the function which sprite this function has been called on.
SpriteA -> Call hideFunction(IID)
SpriteB -> Call hideFunction(IID)
SpriteC -> Call hideFunction(IID)
Function.Param(0).X = -100;
Function.Param(0).Y = -100;