getclone2
Posted: Mon Mar 07, 2005 9:23 pm
- Code: Select all
Actor *getclone2 ( char *actorName, long cloneNumber )
{
char resultString[256] = "";
char cloneNumberAsString[10];
Actor *resultActor;
strcpy ( resultString, actorName );
strncat ( resultString, ".", 1 );
sprintf (cloneNumberAsString, "%i", cloneNumber);
strncat ( resultString, cloneNumberAsString, 10 );
resultActor = getclone(resultString);
return resultActor;
}
Paste it into global code editor.
Same usage as "getclone" but you can specify name and clone number separately.
GE Rocks!