Thread: RADAR Script
View Single Post
  #2  
Old 06-12-2012, 11:18 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Code:
GamePlay.gpHUDLogCenter(null, "Only two seconds visible", new object[]{}, 2);
last Argument in example: time in seconds (double)

ups missunderstood the question:

you must place the messages if used in OnTickGame in a if clause example:
Code:
public override void OnTickGame()
    {
        base.OnTickGame();

        if (Time.tickCounter() % 300 == 0) // every 10 sec.
        {
             // your code here
        }
    }
a tick is 1/30 sec.

Last edited by FG28_Kodiak; 06-12-2012 at 11:25 AM.
Reply With Quote