Raised This Month: $ Target: $400
 0% 

Dividing Integers...


Post New Thread Reply   
 
Thread Tools Display Modes
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-30-2005 , 12:24  
Reply With Quote #21

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.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 04-30-2005 , 13:47  
Reply With Quote #22

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]
KCE is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-30-2005 , 16:27  
Reply With Quote #23

Quote:
Originally Posted by KCE
Well, it's not possible for two entities to have the sam id.
Not if they both exist at the same time, but 523 could be re-used over and over again if no current entities hold it, for example.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode