prof_end/prof_begin
What do prof_end / prof_begin function?
for example
context_Sensative_Dialog_Guy_In_Sight_Check()
{
prof_begin( "AI_in_sight_check" );
//enemies = getaiarray( "axis" );
//replace with level of enemy team members?
enemies = [];
for( i = 0 ; i < enemies.size ; i++ )
{
if ( !isdefined( enemies[ i ] ) )
continue;
if ( !isalive( enemies[ i ] ) )
continue;
if ( within_fov( level.ac130player getEye(), level.ac130player getPlayerAngles(), enemies[ i ].origin, level.cosine[ "5" ] ) )
{
prof_end( "AI_in_sight_check" );
return true;
}
wait 0.05;
}
prof_end( "AI_in_sight_check" );
return false;
}