Copying Pointer to Actor
Posted: Sat Jul 30, 2005 6:27 am
Example usage:
how do I copy the pointer to the actor?
eg actorWithBestHealth = getclone(actor[i]);
Thanks people.
- Code: Select all
Actor *actorWithBestHealth = getclone("invalid.0");
if ( actor[i].myHealth > actorWithBestHealth->myHealth )
// what do I type here?
how do I copy the pointer to the actor?
eg actorWithBestHealth = getclone(actor[i]);
Thanks people.