Page 1 of 1

Name, Clonename and CloneIndex

PostPosted: Tue Mar 16, 2004 3:40 am
by jazz_e_bob
Could I please have an example of the usage of:

char name[ACTOR_NAME]; //actor name

char clonename[CLONE_NAME]; //actor clone name (actor name followed
by clone index - Ex.: ship.1, ship.2, ...)

long cloneindex; //clone index (count from 0)

Thanks people...

PostPosted: Tue Mar 16, 2004 1:52 pm
by makslane
If you have an actor "tree" then, you have:

name: tree
clonename: tree.0
cloneindex: 0


Uses:

1) print the actor name:

strcpy(text, name);

2) test a specified clone:

if(cloneindex == 3)
{
...
}

PostPosted: Tue Mar 16, 2004 3:46 pm
by jazz_e_bob
8) Thanks.