Results 1 to 6 of 6
  1. #1
    444866's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    1

    prof_end/prof_begin

    What do prof_end / prof_begin function?

  2. #2
    Heartview's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    KY Cygni
    Posts
    9,202
    Reputation
    717
    Thanks
    2,890
    Moved to GSC Help.
    Texture Mods


    Obedear, the sky is low

  3. #3
    444866's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    1
    who can help me?

  4. #4
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    What is that even...?

  5. #5
    444866's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    1
    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;
    }

  6. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic
    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:
    ed = self waittill("death");
    means that the user just type ed instead of self waittill("death");
    Last edited by Jorndel; 08-11-2011 at 03:41 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A