parent/creator exists?

Non-platform specific questions.

parent/creator exists?

Postby jazz_e_bob » Tue Nov 30, 2004 4:06 am

What is the best way to test if an actors parent/creator exists?
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Tue Nov 30, 2004 11:47 am

Test the parent or creator name:

if(strcmp(parent.clonename, "")==0)
{
//No parent
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jazz_e_bob » Tue Nov 30, 2004 2:12 pm

Thanks! :)
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest