Why does not work this method?
Without checking the name, works with all objects, that are currently in contact with the object.
void _stdcall EntityCollisionCallback( TEntity entity0, TEntity entity1, byte* position, byte* normal, byte* force, flt speed )
{
if(GetEntityKey(entity1,"name")=="test_box")
{
HideEntity(entity1);
}
}
//Entity box
SetEntityKey(test_box, "name","test_box");
//Controller
SetEntityKey(Controller, "name","controller");
SetEntityCallback(Controller,(byte*)EntityCollisionCallback,ENTITYCALLBACK_COLLISION);