If i wanted to write
- Code: Select all
textNumber = player.1.animpos
Where my text actor (000 obviously would be its current text) would show player.1's animpos. This current code doesnt work.
How would i do this?
textNumber = player.1.animpos
Actor *
getCloneIdx (const char *cname, int cindex) //g_GetCloneByIndex, its original name
{
char buffer[50];
sprintf(buffer,"%s.%i",cname,cindex);
return(getclone(buffer));
}
Actor * PLAYER = getCloneIdx(player, 1);
textNumber=PLAYER->animpos;
getclone("actorname.1")->variable
Actor * PLAYER = getCloneIdx(player.name, 1);
textNumber=PLAYER->animpos;
Users browsing this forum: No registered users and 1 guest