Ok, so everytime I create an entity I set it's group to 1.
...and then for the tracing:
trace_ent.group = 2;
c_ignore(1, 0);
This won't do anything useful as _hit is lost when the method returns.
what exactly do you mean with this? Why won't it work?
I've tested it like this:
var test_fnc(var * var_ptr)
{
*var_ptr = 25;
return *var_ptr * 2;
}
[...]
var var_a = 0;
var var_b = test_fnc(var_a);
after this
var_a is
25 and
var_b is
50.
EDIT: got it, should be
*_hit = hit;