Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Problem with a class

Author
Message
Franck22000
15
Years of Service
User Offline
Joined: 7th May 2009
Location:
Posted: 8th Sep 2009 19:54
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

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-10-01 12:42:07
Your offset time is: 2024-10-01 12:42:07