Posted By: Reconnoiter
sending pointer through send_skill - 06/10/14 14:41
Hey,
Is sending a pointer of an entity through send_skill a reliable way to get the pointer on the entity on e.g. clients? Like this?;
I need to be sure, am doing the bug cleaning.
Is sending a pointer of an entity through send_skill a reliable way to get the pointer on the entity on e.g. clients? Like this?;
Code:
//server f ((connection & CONNECT_SERVER) || connection == 0) { my.ENEMY = pointer_player[i]; send_skill(my.ENEMY,SEND_ALL); } ... //on both if (my.ENEMY != 0) pointer_enemy_player = my.ENEMY;
I need to be sure, am doing the bug cleaning.