Hey guys!
For my game I have to scan the texture my soldier is standing on with his bbox, so I have to use USE_BOX together with SCAN_TEXTURE which doesnt work (Manual says that). Thats the reason why I tried to perfom 2 traces, but my second trace doesnt always hit because its near an edge...
Code:
if(c_trace(vector(pLocal.x, pLocal.y, pLocal.z+50), vector(pLocal.x, pLocal.y, pLocal.z-50), USE_BOX|IGNORE_PASSABLE|IGNORE_SPRITES|IGNORE_PASSENTS))
{
	if(c_trace(vector(hit.x, hit.y, hit.z+10), vector(hit.x, hit.y, hit.z-10), IGNORE_PASSABLE|IGNORE_SPRITES|IGNORE_PASSENTS|SCAN_TEXTURE))
	{
		//Do some code
	}
}



Does someone have an Idea how to rotate the second trace vector so I will hit the edge of the object?