Hello i would like to make a function in one of my class but i dont know how. for the moment i have 2 class (please look in the attached file)
And i would like a "GetTexture" function that will return the texture name of a static object selected by his ID. How Can i implement that corectly ?
I would like something like to be able to do something like that for example.
// Collide return the Object ID of the raycast hit point.
collide = SC_RayCastGroup( 1, oldx,oldy,oldz, x,y,z, 0 );
if ( (collide > 0) && (dbMouseClick() ) )
{
int StaticObject = StaticObj->GetObject(collide)
if (StaticObject > 0) dbText(100,100, StaticObj->GetTexture(collide) ) ;
};
Thanks for the help