Moved to GSC Help.
What do prof_end / prof_begin function?
Moved to GSC Help.
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;
}
Put it in a code. ( [CODE ]{TEXT}[/CODE ] ) Remove space at end...
If you link me to where you got this "code" I will look.
For now it just look like an other kind of
self waittill("prof");
self notify("prof");
self endon("prof");
Are you sure that the mod you take this off have't "dimed" it?
"Dim" Exemple:
means that the user just type ed instead of self waittill("death");ed = self waittill("death");
Last edited by Jorndel; 08-11-2011 at 03:41 AM.