# Game Play Time
Grammar — Game play time for player player
Flags —Function
|Internal
Returns the elapsed play time for a player in game time seconds.
# Arguments
int
— Player
Returns — fixed
fixed libNtve_gf_GamePlayTime(int lp_player);
# Related
Category: Game / Game Settings / Internal
- Game Play Time —
fixed
— libNtve_gf_GamePlayTime
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:605
lv_difficulty = PlayerDifficulty(1);
libCamp_gv_tS_MissionCompleteTime = FixedToInt(libNtve_gf_GamePlayTime(1));
libCamp_gf_TS_SetMissionDifficultyCompleted(libCamp_gv_tS_CurrentMap, lv_difficulty, true);
lv_bestTime = libCamp_gf_MissionCompleteBestTime(libCamp_gv_tS_CurrentMap, lv_difficulty);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1341
lv_difficulty = PlayerDifficulty(1);
libSwaC_gv_zS_MissionCompleteTime = FixedToInt(libNtve_gf_GamePlayTime(1));
lv_bestTime = libSwaC_gf_MissionCompleteBestTime(libSwaC_gf_CurrentMap(), lv_difficulty);
if (((lv_bestTime <= 0) || (libSwaC_gv_zS_MissionCompleteTime < lv_bestTime))) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1182
lv_missionDifficulty = PlayerDifficulty(1);
libVCMI_gv_pM_MissionCompleteTime = FixedToInt(libNtve_gf_GamePlayTime(1));
lv_bestTime = libVoiC_gf_MissionCompleteBestTime(libVoiC_gf_CurrentMap(), lv_missionDifficulty);
if (((lv_bestTime <= 0) || (libVCMI_gv_pM_MissionCompleteTime < lv_bestTime))) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1247
libVoiC_gf_PC_StatEventAddInt("Victory", 0, libVoiC_gf_PC_StatEventLast());
}
libVoiC_gf_PC_StatEventAddInt("MissionTime", FixedToInt(libNtve_gf_GamePlayTime(1)), libVoiC_gf_PC_StatEventLast());
libVoiC_gf_PC_StatEventAddInt("Difficulty", libVoiC_gf_PC_DifficultyIndex(PlayerDifficulty(1)), libVoiC_gf_PC_StatEventLast());
libVoiC_gf_PC_StatEventDone(libVoiC_gf_PC_StatEventLast());
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2187
lv_missionDifficulty = PlayerDifficulty(1);
libNCMI_gv_NM_MissionCompleteTime = FixedToInt(libNtve_gf_GamePlayTime(1));
lv_bestTime = libComC_gf_MissionCompleteBestTime(libComC_gf_CurrentMap(), lv_missionDifficulty);
if (((lv_bestTime <= 0) || (libNCMI_gv_NM_MissionCompleteTime < lv_bestTime))) {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:1029
lv_difficulty = PlayerDifficulty(1);
libA3DDD02B_gv_pP_MissionCompleteTime = FixedToInt(libNtve_gf_GamePlayTime(1));
lv_bestTime = libA3DDD02B_gf_MissionCompleteBestTime(libA3DDD02B_gf_CurrentMap(), lv_difficulty);
if (((lv_bestTime <= 0) || (libA3DDD02B_gv_pP_MissionCompleteTime < lv_bestTime))) {