Quote:
Originally Posted by BioHazardousWaste
Oh, sorry. You must be a bit confused because I didn't explain my code very well. Each player can only plant 1 mine, so to make it easy I just get the id of the player, because the id of the mine will be the exact same since they can only plant 1 each.
|
Well, it's not possible for two entities to have the sam id. The mine is its own entity with its own id, and the player is its own entity with its own id. What you mean is that based on the player id in the array, you can get the mine id you assigned it to.
__________________
My 3D Art: http://k-c-e.deviantart.com/
[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]