Alright. I believe the time has come to start assigning behavior to these "magnets". I was thinking of using a spherical c_scan to detect nearby entities, and if it detects one or more, it will attract to it (or repel it), and the same goes for the others (because they also have their own c_scan).

I know the attraction/repulsion thing is going to involve a bit of trigonometry, and I've got that part worked out (mostly), but how can I use c_scan to detect whether the magnet is POSITIVE or NEGATIVE, if I can at all?

Are the me and you pointers universal, or can they only be used with entities?

Last edited by MrCode; 02/03/08 05:43.

Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}