function rail_checkpoint_init(e) end function rail_checkpoint_main(e) if GetPlayerInZone(e) == 1 then PlaySound(e,0) startx = g_Entity[player]['x'] starty = g_Entity[player]['y'] startz = g_Entity[player]['z'] checkpoint = ai_path_point_index[player] checkpoint_d = ai_path_point_direction[player] checkpoint_i = ai_soldier_pathindex[player] Destroy(e) end end function rail_checkpoint_exit(e) ActivateIfUsed(e) end